mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-06-01 04:01:26 +00:00
Enables the 'chromium_experimental_full_ptr_parameters' extension to allow passing of uniform, storage and workgroup address-spaced pointers as parameters, as well as pointers into sub-objects. Bug: tint:1758 Change-Id: I8c85e6104ef4f2b9a177dec2857b1bf7f5148212 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/103860 Commit-Queue: Ben Clayton <bclayton@google.com> Kokoro: Ben Clayton <bclayton@google.com> Reviewed-by: James Price <jrprice@google.com>
11 lines
178 B
HLSL
11 lines
178 B
HLSL
float4 func(inout float4 pointer) {
|
|
return pointer;
|
|
}
|
|
|
|
[numthreads(1, 1, 1)]
|
|
void main() {
|
|
float4 F = float4(0.0f, 0.0f, 0.0f, 0.0f);
|
|
const float4 r = func(F);
|
|
return;
|
|
}
|