mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-07-06 05:06:07 +00:00
The texture_storage_3d overload should allow for unsigned coordinates. Change-Id: I6278571fb9dc7bba644a4ba88cce6b8bd7c790bf Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/122521 Kokoro: Kokoro <noreply+kokoro@google.com> Commit-Queue: Ben Clayton <bclayton@google.com> Reviewed-by: James Price <jrprice@google.com>
22 lines
400 B
WebGPU Shading Language
22 lines
400 B
WebGPU Shading Language
@group(1) @binding(0) var arg_0 : texture_storage_3d<rgba32uint, write>;
|
|
|
|
fn textureStore_d4aa95() {
|
|
textureStore(arg_0, vec3<u32>(1u), vec4<u32>(1u));
|
|
}
|
|
|
|
@vertex
|
|
fn vertex_main() -> @builtin(position) vec4<f32> {
|
|
textureStore_d4aa95();
|
|
return vec4<f32>();
|
|
}
|
|
|
|
@fragment
|
|
fn fragment_main() {
|
|
textureStore_d4aa95();
|
|
}
|
|
|
|
@compute @workgroup_size(1)
|
|
fn compute_main() {
|
|
textureStore_d4aa95();
|
|
}
|