mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-05-28 10:11:33 +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>
41 lines
1.4 KiB
Plaintext
41 lines
1.4 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 %S_block "S_block"
|
|
OpMemberName %S_block 0 "inner"
|
|
OpName %S "S"
|
|
OpName %func_S "func_S"
|
|
OpName %main "main"
|
|
OpDecorate %S_block Block
|
|
OpMemberDecorate %S_block 0 Offset 0
|
|
OpDecorate %S NonWritable
|
|
OpDecorate %S DescriptorSet 0
|
|
OpDecorate %S Binding 0
|
|
%int = OpTypeInt 32 1
|
|
%S_block = OpTypeStruct %int
|
|
%_ptr_StorageBuffer_S_block = OpTypePointer StorageBuffer %S_block
|
|
%S = OpVariable %_ptr_StorageBuffer_S_block StorageBuffer
|
|
%5 = OpTypeFunction %int
|
|
%uint = OpTypeInt 32 0
|
|
%uint_0 = OpConstant %uint 0
|
|
%_ptr_StorageBuffer_int = OpTypePointer StorageBuffer %int
|
|
%void = OpTypeVoid
|
|
%13 = OpTypeFunction %void
|
|
%func_S = OpFunction %int None %5
|
|
%7 = OpLabel
|
|
%11 = OpAccessChain %_ptr_StorageBuffer_int %S %uint_0
|
|
%12 = OpLoad %int %11
|
|
OpReturnValue %12
|
|
OpFunctionEnd
|
|
%main = OpFunction %void None %13
|
|
%16 = OpLabel
|
|
%17 = OpFunctionCall %int %func_S
|
|
OpReturn
|
|
OpFunctionEnd
|