wgpu icon indicating copy to clipboard operation
wgpu copied to clipboard

Texture format R64Uint requires TEXTURE_INT64_ATOMIC

Open inner-daemons opened this issue 3 weeks ago • 0 comments

Docs for the format:

wgpu_types::texture::format::TextureFormat
R64Uint
Red channel only. 64 bit integer per channel. Unsigned in shader.

Features::TEXTURE_INT64_ATOMIC must be enabled to use this texture format

Docs for the feature:

wgpu_types::features::Features
pub const TEXTURE_INT64_ATOMIC: Self = Features { features_wgpu: FeaturesWGPU(InternalBitFlags(70368744177664)), features_webgpu: FeaturesWebGPU(InternalBitFlags(0)) }
Enables R64Uint image atomic min and max.

Supported platforms:

Vulkan (with VK_EXT_shader_image_atomic_int64)
DX12 (with SM 6.6+)
Metal (with MSL 3.1+)
This is a native only feature

The requirement is backed up in TextureFormat::required_features(). There is no reason this should be required, and it isn't the case for any textures with TEXTURE_ATOMIC.

inner-daemons avatar Dec 04 '25 22:12 inner-daemons