58 lines
1.7 KiB
Plaintext
58 lines
1.7 KiB
Plaintext
; Test: SpvParserFunctionVarTest_EmitFunctionVariables_ScalarNullInitializers.spvasm
|
|
; SPIR-V
|
|
; Version: 1.0
|
|
; Generator: Khronos SPIR-V Tools Assembler; 0
|
|
; Bound: 101
|
|
; Schema: 0
|
|
OpCapability Shader
|
|
OpMemoryModel Logical Simple
|
|
OpEntryPoint Fragment %100 "main"
|
|
OpExecutionMode %100 OriginUpperLeft
|
|
OpName %a "a"
|
|
OpName %b "b"
|
|
OpName %c "c"
|
|
OpName %d "d"
|
|
%void = OpTypeVoid
|
|
%6 = OpTypeFunction %void
|
|
%bool = OpTypeBool
|
|
%float = OpTypeFloat 32
|
|
%uint = OpTypeInt 32 0
|
|
%int = OpTypeInt 32 1
|
|
%_ptr_Function_bool = OpTypePointer Function %bool
|
|
%_ptr_Function_float = OpTypePointer Function %float
|
|
%_ptr_Function_uint = OpTypePointer Function %uint
|
|
%_ptr_Function_int = OpTypePointer Function %int
|
|
%true = OpConstantTrue %bool
|
|
%false = OpConstantFalse %bool
|
|
%float_0 = OpConstant %float 0
|
|
%float_1_5 = OpConstant %float 1.5
|
|
%uint_0 = OpConstant %uint 0
|
|
%uint_1 = OpConstant %uint 1
|
|
%int_n1 = OpConstant %int -1
|
|
%int_0 = OpConstant %int 0
|
|
%int_1 = OpConstant %int 1
|
|
%int_3 = OpConstant %int 3
|
|
%uint_2 = OpConstant %uint 2
|
|
%uint_3 = OpConstant %uint 3
|
|
%uint_4 = OpConstant %uint 4
|
|
%uint_5 = OpConstant %uint 5
|
|
%v2int = OpTypeVector %int 2
|
|
%v2float = OpTypeVector %float 2
|
|
%mat3v2float = OpTypeMatrix %v2float 3
|
|
%32 = OpConstantNull %v2int
|
|
%_arr_uint_uint_2 = OpTypeArray %uint %uint_2
|
|
%_struct_34 = OpTypeStruct %uint %float %_arr_uint_uint_2
|
|
%35 = OpConstantNull %bool
|
|
%36 = OpConstantNull %int
|
|
%37 = OpConstantNull %uint
|
|
%38 = OpConstantNull %float
|
|
%100 = OpFunction %void None %6
|
|
%39 = OpLabel
|
|
%a = OpVariable %_ptr_Function_bool Function %35
|
|
%b = OpVariable %_ptr_Function_int Function %36
|
|
%c = OpVariable %_ptr_Function_uint Function %37
|
|
%d = OpVariable %_ptr_Function_float Function %38
|
|
OpReturn
|
|
OpFunctionEnd
|
|
|