Skip to content

Texture format R64Uint requires TEXTURE_INT64_ATOMIC #8662

@inner-daemons

Description

@inner-daemons

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: apiIssues related to API surfacearea: correctnessWe're behaving incorrectly

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions