

You can now create views from the texture to serve as transient Wgpu ::TextureUsage ::TransientAttachment Īuto transientTexture = device. usage = wgpu ::TextureUsage ::RenderAttachment | format = wgpu ::TextureFormat ::RGBA8Unorm ĭesc. This feature is supported only for Metal and Vulkan. You can create attachments that allow render pass operations to stay in tile memory, avoiding VRAM traffic and potentially avoiding VRAM allocation for the textures by setting the wgpu::TextureUsage::TransientAttachment usage. See issue dawn:1681 # Dawn updates # Transient attachments From now on, when you enable it for debugging, the HLSL will be dumped if it fails compilation. The dump_shaders debug toggle allows you to log input WGSL shaders and translated backend shaders.

See issue dawn:1784 User defined labels in the Instruments app on macOS. From now on, a better debug experience is provided on macOS when you enable it for debugging. The use_user_defined_labels_in_backend debug toggle allows you to forward object labels to the backend so that they can be seen in platform-specific debugging tools like RenderDoc, PIX, or Instruments. New! Error message tells you mapping is already pending. Before it has been mapped, request another mapping.Īwait buffer. has ( "unknown-feature" ) ) Ĭonst buffer = device. This list is currently empty but you can expect plenty of them in the future (for example, do-while loops).

Supported WGSL language extensions are automatically enabled, therefore you don’t need to explicitly request one. The wgslLanguageFeatures member of the GPU object lists the names of supported WGSL language extensions.
