mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-06-18 04:23:36 +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>
33 lines
1.1 KiB
Plaintext
33 lines
1.1 KiB
Plaintext
; SPIR-V
|
|
; Version: 1.3
|
|
; Generator: Google Tint Compiler; 0
|
|
; Bound: 18
|
|
; Schema: 0
|
|
OpCapability Shader
|
|
OpMemoryModel Logical GLSL450
|
|
OpEntryPoint GLCompute %main "main"
|
|
OpExecutionMode %main LocalSize 1 1 1
|
|
OpName %P "P"
|
|
OpName %func "func"
|
|
OpName %pointer "pointer"
|
|
OpName %main "main"
|
|
%float = OpTypeFloat 32
|
|
%v4float = OpTypeVector %float 4
|
|
%_ptr_Private_v4float = OpTypePointer Private %v4float
|
|
%5 = OpConstantNull %v4float
|
|
%P = OpVariable %_ptr_Private_v4float Private %5
|
|
%6 = OpTypeFunction %v4float %_ptr_Private_v4float
|
|
%void = OpTypeVoid
|
|
%12 = OpTypeFunction %void
|
|
%func = OpFunction %v4float None %6
|
|
%pointer = OpFunctionParameter %_ptr_Private_v4float
|
|
%9 = OpLabel
|
|
%11 = OpLoad %v4float %pointer
|
|
OpReturnValue %11
|
|
OpFunctionEnd
|
|
%main = OpFunction %void None %12
|
|
%15 = OpLabel
|
|
%16 = OpFunctionCall %v4float %func %P
|
|
OpReturn
|
|
OpFunctionEnd
|