mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-07-11 23:56:05 +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>
24 lines
442 B
WebGPU Shading Language
24 lines
442 B
WebGPU Shading Language
@group(1) @binding(0) var arg_0 : texture_storage_3d<rgba32uint, write>;
|
|
|
|
fn textureStore_d4aa95() {
|
|
var arg_1 = vec3<u32>(1u);
|
|
var arg_2 = vec4<u32>(1u);
|
|
textureStore(arg_0, arg_1, arg_2);
|
|
}
|
|
|
|
@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();
|
|
}
|