33 lines
1.1 KiB
Plaintext
33 lines
1.1 KiB
Plaintext
; SPIR-V
|
|
; Version: 1.3
|
|
; Generator: Google Tint Compiler; 0
|
|
; Bound: 17
|
|
; 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"
|
|
%int = OpTypeInt 32 1
|
|
%_ptr_Private_int = OpTypePointer Private %int
|
|
%4 = OpConstantNull %int
|
|
%P = OpVariable %_ptr_Private_int Private %4
|
|
%void = OpTypeVoid
|
|
%5 = OpTypeFunction %void %_ptr_Private_int
|
|
%int_42 = OpConstant %int 42
|
|
%12 = OpTypeFunction %void
|
|
%func = OpFunction %void None %5
|
|
%pointer = OpFunctionParameter %_ptr_Private_int
|
|
%9 = OpLabel
|
|
OpStore %pointer %int_42
|
|
OpReturn
|
|
OpFunctionEnd
|
|
%main = OpFunction %void None %12
|
|
%14 = OpLabel
|
|
%15 = OpFunctionCall %void %func %P
|
|
OpReturn
|
|
OpFunctionEnd
|