Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement texture_storage_Xd in WGSL #5158

Merged

Commits on Sep 26, 2024

  1. Implement texture_storage_Xd in WGSL

    This commit implements `texture_storage_Xd` in WGSL, which is similar
    to RWTextureXD in HLSL.
    
    It is intresting that `texture_storage_Xd` doesn't take the shader
    type as its input argument at all.
    Instead, it takes "texel format" enum value as its first template
    parameter, which can be found here:
    https://www.w3.org/TR/WGSL/#storage-texel-formats
    
    As an example, `texture_storage_2d<rg32uint, read_write>` expects
    vec4<u32> as a value type for `Load` and `Store`, where Z-component
    will be ignored and treated as zero and W-component will be treated
    always as 1. The type `u32` is inferred from the enum value `rg32uint`.
    Note that the number of component is always fixed to 4 regardless how
    many components are actually stored.
    jkwak-work committed Sep 26, 2024
    Configuration menu
    Copy the full SHA
    ec39661 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    76c512f View commit details
    Browse the repository at this point in the history