mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-10 14:08:04 +00:00
tint: Preserve padding in matrices with three rows
The PreservePadding transform now decomposes writes to matrices with three rows into separate column vector writes, to avoid modifying padding between columns. Bug: tint:1571 Change-Id: If575f79bb87f52810783fd3338e2f3ce3228ab2e Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/121600 Auto-Submit: James Price <jrprice@google.com> Kokoro: Kokoro <noreply+kokoro@google.com> Reviewed-by: Ben Clayton <bclayton@google.com> Commit-Queue: James Price <jrprice@google.com>
This commit is contained in:
committed by
Dawn LUCI CQ
parent
fe19fee3ea
commit
6176c85be8
@@ -37,7 +37,25 @@ layout(binding = 0, std430) buffer S_ssbo {
|
||||
Inner arr[];
|
||||
} sb;
|
||||
|
||||
void assign_and_preserve_padding_sb_arr_X_arr2_vec3_f32(uint dest[1], vec3 value[2]) {
|
||||
void assign_and_preserve_padding_sb_arr_X_mat2x3_f32(uint dest[1], mat2x3 value) {
|
||||
sb.arr[dest[0]].mat2x3_f32[0] = value[0u];
|
||||
sb.arr[dest[0]].mat2x3_f32[1] = value[1u];
|
||||
}
|
||||
|
||||
void assign_and_preserve_padding_1_sb_arr_X_mat3x3_f32(uint dest[1], mat3 value) {
|
||||
sb.arr[dest[0]].mat3x3_f32[0] = value[0u];
|
||||
sb.arr[dest[0]].mat3x3_f32[1] = value[1u];
|
||||
sb.arr[dest[0]].mat3x3_f32[2] = value[2u];
|
||||
}
|
||||
|
||||
void assign_and_preserve_padding_2_sb_arr_X_mat4x3_f32(uint dest[1], mat4x3 value) {
|
||||
sb.arr[dest[0]].mat4x3_f32[0] = value[0u];
|
||||
sb.arr[dest[0]].mat4x3_f32[1] = value[1u];
|
||||
sb.arr[dest[0]].mat4x3_f32[2] = value[2u];
|
||||
sb.arr[dest[0]].mat4x3_f32[3] = value[3u];
|
||||
}
|
||||
|
||||
void assign_and_preserve_padding_3_sb_arr_X_arr2_vec3_f32(uint dest[1], vec3 value[2]) {
|
||||
{
|
||||
for(uint i = 0u; (i < 2u); i = (i + 1u)) {
|
||||
sb.arr[dest[0]].arr2_vec3_f32[i] = value[i];
|
||||
@@ -59,17 +77,20 @@ void tint_symbol(uint idx) {
|
||||
sb.arr[idx].vec4_i32 = ivec4(0);
|
||||
sb.arr[idx].vec4_u32 = uvec4(0u);
|
||||
sb.arr[idx].mat2x2_f32 = mat2(vec2(0.0f), vec2(0.0f));
|
||||
sb.arr[idx].mat2x3_f32 = mat2x3(vec3(0.0f), vec3(0.0f));
|
||||
uint tint_symbol_1[1] = uint[1](idx);
|
||||
assign_and_preserve_padding_sb_arr_X_mat2x3_f32(tint_symbol_1, mat2x3(vec3(0.0f), vec3(0.0f)));
|
||||
sb.arr[idx].mat2x4_f32 = mat2x4(vec4(0.0f), vec4(0.0f));
|
||||
sb.arr[idx].mat3x2_f32 = mat3x2(vec2(0.0f), vec2(0.0f), vec2(0.0f));
|
||||
sb.arr[idx].mat3x3_f32 = mat3(vec3(0.0f), vec3(0.0f), vec3(0.0f));
|
||||
uint tint_symbol_2[1] = uint[1](idx);
|
||||
assign_and_preserve_padding_1_sb_arr_X_mat3x3_f32(tint_symbol_2, mat3(vec3(0.0f), vec3(0.0f), vec3(0.0f)));
|
||||
sb.arr[idx].mat3x4_f32 = mat3x4(vec4(0.0f), vec4(0.0f), vec4(0.0f));
|
||||
sb.arr[idx].mat4x2_f32 = mat4x2(vec2(0.0f), vec2(0.0f), vec2(0.0f), vec2(0.0f));
|
||||
sb.arr[idx].mat4x3_f32 = mat4x3(vec3(0.0f), vec3(0.0f), vec3(0.0f), vec3(0.0f));
|
||||
uint tint_symbol_3[1] = uint[1](idx);
|
||||
assign_and_preserve_padding_2_sb_arr_X_mat4x3_f32(tint_symbol_3, mat4x3(vec3(0.0f), vec3(0.0f), vec3(0.0f), vec3(0.0f)));
|
||||
sb.arr[idx].mat4x4_f32 = mat4(vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f));
|
||||
uint tint_symbol_1[1] = uint[1](idx);
|
||||
vec3 tint_symbol_2[2] = vec3[2](vec3(0.0f), vec3(0.0f));
|
||||
assign_and_preserve_padding_sb_arr_X_arr2_vec3_f32(tint_symbol_1, tint_symbol_2);
|
||||
uint tint_symbol_4[1] = uint[1](idx);
|
||||
vec3 tint_symbol_5[2] = vec3[2](vec3(0.0f), vec3(0.0f));
|
||||
assign_and_preserve_padding_3_sb_arr_X_arr2_vec3_f32(tint_symbol_4, tint_symbol_5);
|
||||
}
|
||||
|
||||
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
|
||||
|
||||
@@ -49,7 +49,25 @@ struct S {
|
||||
/* 0x0000 */ tint_array<Inner, 1> arr;
|
||||
};
|
||||
|
||||
void assign_and_preserve_padding(device tint_array<float3, 2>* const dest, tint_array<float3, 2> value) {
|
||||
void assign_and_preserve_padding(device float2x3* const dest, float2x3 value) {
|
||||
(*(dest))[0u] = value[0u];
|
||||
(*(dest))[1u] = value[1u];
|
||||
}
|
||||
|
||||
void assign_and_preserve_padding_1(device float3x3* const dest, float3x3 value) {
|
||||
(*(dest))[0u] = value[0u];
|
||||
(*(dest))[1u] = value[1u];
|
||||
(*(dest))[2u] = value[2u];
|
||||
}
|
||||
|
||||
void assign_and_preserve_padding_2(device float4x3* const dest, float4x3 value) {
|
||||
(*(dest))[0u] = value[0u];
|
||||
(*(dest))[1u] = value[1u];
|
||||
(*(dest))[2u] = value[2u];
|
||||
(*(dest))[3u] = value[3u];
|
||||
}
|
||||
|
||||
void assign_and_preserve_padding_3(device tint_array<float3, 2>* const dest, tint_array<float3, 2> value) {
|
||||
for(uint i = 0u; (i < 2u); i = (i + 1u)) {
|
||||
(*(dest))[i] = value[i];
|
||||
}
|
||||
@@ -69,16 +87,16 @@ void tint_symbol_inner(uint idx, device S* const tint_symbol_2) {
|
||||
(*(tint_symbol_2)).arr[idx].vec4_i32 = int4(0);
|
||||
(*(tint_symbol_2)).arr[idx].vec4_u32 = uint4(0u);
|
||||
(*(tint_symbol_2)).arr[idx].mat2x2_f32 = float2x2(float2(0.0f), float2(0.0f));
|
||||
(*(tint_symbol_2)).arr[idx].mat2x3_f32 = float2x3(float3(0.0f), float3(0.0f));
|
||||
assign_and_preserve_padding(&((*(tint_symbol_2)).arr[idx].mat2x3_f32), float2x3(float3(0.0f), float3(0.0f)));
|
||||
(*(tint_symbol_2)).arr[idx].mat2x4_f32 = float2x4(float4(0.0f), float4(0.0f));
|
||||
(*(tint_symbol_2)).arr[idx].mat3x2_f32 = float3x2(float2(0.0f), float2(0.0f), float2(0.0f));
|
||||
(*(tint_symbol_2)).arr[idx].mat3x3_f32 = float3x3(float3(0.0f), float3(0.0f), float3(0.0f));
|
||||
assign_and_preserve_padding_1(&((*(tint_symbol_2)).arr[idx].mat3x3_f32), float3x3(float3(0.0f), float3(0.0f), float3(0.0f)));
|
||||
(*(tint_symbol_2)).arr[idx].mat3x4_f32 = float3x4(float4(0.0f), float4(0.0f), float4(0.0f));
|
||||
(*(tint_symbol_2)).arr[idx].mat4x2_f32 = float4x2(float2(0.0f), float2(0.0f), float2(0.0f), float2(0.0f));
|
||||
(*(tint_symbol_2)).arr[idx].mat4x3_f32 = float4x3(float3(0.0f), float3(0.0f), float3(0.0f), float3(0.0f));
|
||||
assign_and_preserve_padding_2(&((*(tint_symbol_2)).arr[idx].mat4x3_f32), float4x3(float3(0.0f), float3(0.0f), float3(0.0f), float3(0.0f)));
|
||||
(*(tint_symbol_2)).arr[idx].mat4x4_f32 = float4x4(float4(0.0f), float4(0.0f), float4(0.0f), float4(0.0f));
|
||||
tint_array<float3, 2> const tint_symbol_1 = tint_array<float3, 2>{};
|
||||
assign_and_preserve_padding(&((*(tint_symbol_2)).arr[idx].arr2_vec3_f32), tint_symbol_1);
|
||||
assign_and_preserve_padding_3(&((*(tint_symbol_2)).arr[idx].arr2_vec3_f32), tint_symbol_1);
|
||||
}
|
||||
|
||||
kernel void tint_symbol(device S* tint_symbol_3 [[buffer(0)]], uint idx [[thread_index_in_threadgroup]]) {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
; SPIR-V
|
||||
; Version: 1.3
|
||||
; Generator: Google Tint Compiler; 0
|
||||
; Bound: 157
|
||||
; Bound: 199
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
OpMemoryModel Logical GLSL450
|
||||
@@ -34,9 +34,18 @@
|
||||
OpMemberName %Inner 20 "mat4x4_f32"
|
||||
OpMemberName %Inner 21 "arr2_vec3_f32"
|
||||
OpName %sb "sb"
|
||||
OpName %assign_and_preserve_padding_sb_arr_X_arr2_vec3_f32 "assign_and_preserve_padding_sb_arr_X_arr2_vec3_f32"
|
||||
OpName %assign_and_preserve_padding_sb_arr_X_mat2x3_f32 "assign_and_preserve_padding_sb_arr_X_mat2x3_f32"
|
||||
OpName %dest "dest"
|
||||
OpName %value "value"
|
||||
OpName %assign_and_preserve_padding_1_sb_arr_X_mat3x3_f32 "assign_and_preserve_padding_1_sb_arr_X_mat3x3_f32"
|
||||
OpName %dest_0 "dest"
|
||||
OpName %value_0 "value"
|
||||
OpName %assign_and_preserve_padding_2_sb_arr_X_mat4x3_f32 "assign_and_preserve_padding_2_sb_arr_X_mat4x3_f32"
|
||||
OpName %dest_1 "dest"
|
||||
OpName %value_1 "value"
|
||||
OpName %assign_and_preserve_padding_3_sb_arr_X_arr2_vec3_f32 "assign_and_preserve_padding_3_sb_arr_X_arr2_vec3_f32"
|
||||
OpName %dest_2 "dest"
|
||||
OpName %value_2 "value"
|
||||
OpName %i "i"
|
||||
OpName %var_for_index "var_for_index"
|
||||
OpName %main_inner "main_inner"
|
||||
@@ -123,165 +132,219 @@
|
||||
%void = OpTypeVoid
|
||||
%uint_1 = OpConstant %uint 1
|
||||
%_arr_uint_uint_1 = OpTypeArray %uint %uint_1
|
||||
%31 = OpTypeFunction %void %_arr_uint_uint_1 %_arr_v3float_uint_2
|
||||
%39 = OpConstantNull %uint
|
||||
%31 = OpTypeFunction %void %_arr_uint_uint_1 %mat2v3float
|
||||
%uint_0 = OpConstant %uint 0
|
||||
%40 = OpConstantNull %int
|
||||
%uint_13 = OpConstant %uint 13
|
||||
%_ptr_StorageBuffer_v3float = OpTypePointer StorageBuffer %v3float
|
||||
%45 = OpConstantNull %uint
|
||||
%int_1 = OpConstant %int 1
|
||||
%51 = OpTypeFunction %void %_arr_uint_uint_1 %mat3v3float
|
||||
%uint_16 = OpConstant %uint 16
|
||||
%int_2 = OpConstant %int 2
|
||||
%67 = OpTypeFunction %void %_arr_uint_uint_1 %mat4v3float
|
||||
%uint_19 = OpConstant %uint 19
|
||||
%int_3 = OpConstant %int 3
|
||||
%uint_3 = OpConstant %uint 3
|
||||
%87 = OpTypeFunction %void %_arr_uint_uint_1 %_arr_v3float_uint_2
|
||||
%_ptr_Function_uint = OpTypePointer Function %uint
|
||||
%bool = OpTypeBool
|
||||
%_ptr_Function__arr_v3float_uint_2 = OpTypePointer Function %_arr_v3float_uint_2
|
||||
%54 = OpConstantNull %_arr_v3float_uint_2
|
||||
%uint_0 = OpConstant %uint 0
|
||||
%56 = OpConstantNull %int
|
||||
%106 = OpConstantNull %_arr_v3float_uint_2
|
||||
%uint_21 = OpConstant %uint 21
|
||||
%_ptr_StorageBuffer_v3float = OpTypePointer StorageBuffer %v3float
|
||||
%_ptr_Function_v3float = OpTypePointer Function %v3float
|
||||
%68 = OpTypeFunction %void %uint
|
||||
%117 = OpTypeFunction %void %uint
|
||||
%_ptr_StorageBuffer_float = OpTypePointer StorageBuffer %float
|
||||
%74 = OpConstantNull %float
|
||||
%123 = OpConstantNull %float
|
||||
%_ptr_StorageBuffer_int = OpTypePointer StorageBuffer %int
|
||||
%_ptr_StorageBuffer_uint = OpTypePointer StorageBuffer %uint
|
||||
%uint_3 = OpConstant %uint 3
|
||||
%_ptr_StorageBuffer_v2float = OpTypePointer StorageBuffer %v2float
|
||||
%82 = OpConstantNull %v2float
|
||||
%130 = OpConstantNull %v2float
|
||||
%uint_4 = OpConstant %uint 4
|
||||
%_ptr_StorageBuffer_v2int = OpTypePointer StorageBuffer %v2int
|
||||
%86 = OpConstantNull %v2int
|
||||
%134 = OpConstantNull %v2int
|
||||
%uint_5 = OpConstant %uint 5
|
||||
%_ptr_StorageBuffer_v2uint = OpTypePointer StorageBuffer %v2uint
|
||||
%90 = OpConstantNull %v2uint
|
||||
%138 = OpConstantNull %v2uint
|
||||
%uint_6 = OpConstant %uint 6
|
||||
%93 = OpConstantNull %v3float
|
||||
%141 = OpConstantNull %v3float
|
||||
%uint_7 = OpConstant %uint 7
|
||||
%_ptr_StorageBuffer_v3int = OpTypePointer StorageBuffer %v3int
|
||||
%97 = OpConstantNull %v3int
|
||||
%145 = OpConstantNull %v3int
|
||||
%uint_8 = OpConstant %uint 8
|
||||
%_ptr_StorageBuffer_v3uint = OpTypePointer StorageBuffer %v3uint
|
||||
%101 = OpConstantNull %v3uint
|
||||
%149 = OpConstantNull %v3uint
|
||||
%uint_9 = OpConstant %uint 9
|
||||
%_ptr_StorageBuffer_v4float = OpTypePointer StorageBuffer %v4float
|
||||
%105 = OpConstantNull %v4float
|
||||
%153 = OpConstantNull %v4float
|
||||
%uint_10 = OpConstant %uint 10
|
||||
%_ptr_StorageBuffer_v4int = OpTypePointer StorageBuffer %v4int
|
||||
%109 = OpConstantNull %v4int
|
||||
%157 = OpConstantNull %v4int
|
||||
%uint_11 = OpConstant %uint 11
|
||||
%_ptr_StorageBuffer_v4uint = OpTypePointer StorageBuffer %v4uint
|
||||
%113 = OpConstantNull %v4uint
|
||||
%161 = OpConstantNull %v4uint
|
||||
%uint_12 = OpConstant %uint 12
|
||||
%_ptr_StorageBuffer_mat2v2float = OpTypePointer StorageBuffer %mat2v2float
|
||||
%117 = OpConstantNull %mat2v2float
|
||||
%uint_13 = OpConstant %uint 13
|
||||
%_ptr_StorageBuffer_mat2v3float = OpTypePointer StorageBuffer %mat2v3float
|
||||
%121 = OpConstantNull %mat2v3float
|
||||
%165 = OpConstantNull %mat2v2float
|
||||
%168 = OpConstantNull %mat2v3float
|
||||
%uint_14 = OpConstant %uint 14
|
||||
%_ptr_StorageBuffer_mat2v4float = OpTypePointer StorageBuffer %mat2v4float
|
||||
%125 = OpConstantNull %mat2v4float
|
||||
%172 = OpConstantNull %mat2v4float
|
||||
%uint_15 = OpConstant %uint 15
|
||||
%_ptr_StorageBuffer_mat3v2float = OpTypePointer StorageBuffer %mat3v2float
|
||||
%129 = OpConstantNull %mat3v2float
|
||||
%uint_16 = OpConstant %uint 16
|
||||
%_ptr_StorageBuffer_mat3v3float = OpTypePointer StorageBuffer %mat3v3float
|
||||
%133 = OpConstantNull %mat3v3float
|
||||
%176 = OpConstantNull %mat3v2float
|
||||
%178 = OpConstantNull %mat3v3float
|
||||
%uint_17 = OpConstant %uint 17
|
||||
%_ptr_StorageBuffer_mat3v4float = OpTypePointer StorageBuffer %mat3v4float
|
||||
%137 = OpConstantNull %mat3v4float
|
||||
%182 = OpConstantNull %mat3v4float
|
||||
%uint_18 = OpConstant %uint 18
|
||||
%_ptr_StorageBuffer_mat4v2float = OpTypePointer StorageBuffer %mat4v2float
|
||||
%141 = OpConstantNull %mat4v2float
|
||||
%uint_19 = OpConstant %uint 19
|
||||
%_ptr_StorageBuffer_mat4v3float = OpTypePointer StorageBuffer %mat4v3float
|
||||
%145 = OpConstantNull %mat4v3float
|
||||
%186 = OpConstantNull %mat4v2float
|
||||
%188 = OpConstantNull %mat4v3float
|
||||
%uint_20 = OpConstant %uint 20
|
||||
%_ptr_StorageBuffer_mat4v4float = OpTypePointer StorageBuffer %mat4v4float
|
||||
%149 = OpConstantNull %mat4v4float
|
||||
%152 = OpTypeFunction %void
|
||||
%assign_and_preserve_padding_sb_arr_X_arr2_vec3_f32 = OpFunction %void None %31
|
||||
%192 = OpConstantNull %mat4v4float
|
||||
%194 = OpTypeFunction %void
|
||||
%assign_and_preserve_padding_sb_arr_X_mat2x3_f32 = OpFunction %void None %31
|
||||
%dest = OpFunctionParameter %_arr_uint_uint_1
|
||||
%value = OpFunctionParameter %_arr_v3float_uint_2
|
||||
%value = OpFunctionParameter %mat2v3float
|
||||
%38 = OpLabel
|
||||
%i = OpVariable %_ptr_Function_uint Function %39
|
||||
%var_for_index = OpVariable %_ptr_Function__arr_v3float_uint_2 Function %54
|
||||
OpStore %i %39
|
||||
OpBranch %42
|
||||
%42 = OpLabel
|
||||
OpLoopMerge %43 %44 None
|
||||
OpBranch %45
|
||||
%45 = OpLabel
|
||||
%47 = OpLoad %uint %i
|
||||
%48 = OpULessThan %bool %47 %uint_2
|
||||
%46 = OpLogicalNot %bool %48
|
||||
OpSelectionMerge %50 None
|
||||
OpBranchConditional %46 %51 %50
|
||||
%51 = OpLabel
|
||||
OpBranch %43
|
||||
%50 = OpLabel
|
||||
OpStore %var_for_index %value
|
||||
%57 = OpCompositeExtract %uint %dest 0
|
||||
%59 = OpLoad %uint %i
|
||||
%61 = OpAccessChain %_ptr_StorageBuffer_v3float %sb %uint_0 %57 %uint_21 %59
|
||||
%62 = OpLoad %uint %i
|
||||
%64 = OpAccessChain %_ptr_Function_v3float %var_for_index %62
|
||||
%65 = OpLoad %v3float %64
|
||||
OpStore %61 %65
|
||||
OpBranch %44
|
||||
%44 = OpLabel
|
||||
%66 = OpLoad %uint %i
|
||||
%67 = OpIAdd %uint %66 %uint_1
|
||||
OpStore %i %67
|
||||
OpBranch %42
|
||||
%43 = OpLabel
|
||||
%41 = OpCompositeExtract %uint %dest 0
|
||||
%44 = OpAccessChain %_ptr_StorageBuffer_v3float %sb %uint_0 %41 %uint_13 %40
|
||||
%46 = OpCompositeExtract %v3float %value 0
|
||||
OpStore %44 %46
|
||||
%47 = OpCompositeExtract %uint %dest 0
|
||||
%49 = OpAccessChain %_ptr_StorageBuffer_v3float %sb %uint_0 %47 %uint_13 %int_1
|
||||
%50 = OpCompositeExtract %v3float %value 1
|
||||
OpStore %49 %50
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%main_inner = OpFunction %void None %68
|
||||
%idx = OpFunctionParameter %uint
|
||||
%assign_and_preserve_padding_1_sb_arr_X_mat3x3_f32 = OpFunction %void None %51
|
||||
%dest_0 = OpFunctionParameter %_arr_uint_uint_1
|
||||
%value_0 = OpFunctionParameter %mat3v3float
|
||||
%55 = OpLabel
|
||||
%56 = OpCompositeExtract %uint %dest_0 0
|
||||
%58 = OpAccessChain %_ptr_StorageBuffer_v3float %sb %uint_0 %56 %uint_16 %40
|
||||
%59 = OpCompositeExtract %v3float %value_0 0
|
||||
OpStore %58 %59
|
||||
%60 = OpCompositeExtract %uint %dest_0 0
|
||||
%61 = OpAccessChain %_ptr_StorageBuffer_v3float %sb %uint_0 %60 %uint_16 %int_1
|
||||
%62 = OpCompositeExtract %v3float %value_0 1
|
||||
OpStore %61 %62
|
||||
%63 = OpCompositeExtract %uint %dest_0 0
|
||||
%65 = OpAccessChain %_ptr_StorageBuffer_v3float %sb %uint_0 %63 %uint_16 %int_2
|
||||
%66 = OpCompositeExtract %v3float %value_0 2
|
||||
OpStore %65 %66
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%assign_and_preserve_padding_2_sb_arr_X_mat4x3_f32 = OpFunction %void None %67
|
||||
%dest_1 = OpFunctionParameter %_arr_uint_uint_1
|
||||
%value_1 = OpFunctionParameter %mat4v3float
|
||||
%71 = OpLabel
|
||||
%73 = OpAccessChain %_ptr_StorageBuffer_float %sb %uint_0 %idx %uint_0
|
||||
OpStore %73 %74
|
||||
%76 = OpAccessChain %_ptr_StorageBuffer_int %sb %uint_0 %idx %uint_1
|
||||
OpStore %76 %56
|
||||
%78 = OpAccessChain %_ptr_StorageBuffer_uint %sb %uint_0 %idx %uint_2
|
||||
OpStore %78 %39
|
||||
%81 = OpAccessChain %_ptr_StorageBuffer_v2float %sb %uint_0 %idx %uint_3
|
||||
OpStore %81 %82
|
||||
%85 = OpAccessChain %_ptr_StorageBuffer_v2int %sb %uint_0 %idx %uint_4
|
||||
OpStore %85 %86
|
||||
%89 = OpAccessChain %_ptr_StorageBuffer_v2uint %sb %uint_0 %idx %uint_5
|
||||
OpStore %89 %90
|
||||
%92 = OpAccessChain %_ptr_StorageBuffer_v3float %sb %uint_0 %idx %uint_6
|
||||
OpStore %92 %93
|
||||
%96 = OpAccessChain %_ptr_StorageBuffer_v3int %sb %uint_0 %idx %uint_7
|
||||
OpStore %96 %97
|
||||
%100 = OpAccessChain %_ptr_StorageBuffer_v3uint %sb %uint_0 %idx %uint_8
|
||||
OpStore %100 %101
|
||||
%104 = OpAccessChain %_ptr_StorageBuffer_v4float %sb %uint_0 %idx %uint_9
|
||||
OpStore %104 %105
|
||||
%108 = OpAccessChain %_ptr_StorageBuffer_v4int %sb %uint_0 %idx %uint_10
|
||||
OpStore %108 %109
|
||||
%112 = OpAccessChain %_ptr_StorageBuffer_v4uint %sb %uint_0 %idx %uint_11
|
||||
OpStore %112 %113
|
||||
%116 = OpAccessChain %_ptr_StorageBuffer_mat2v2float %sb %uint_0 %idx %uint_12
|
||||
OpStore %116 %117
|
||||
%120 = OpAccessChain %_ptr_StorageBuffer_mat2v3float %sb %uint_0 %idx %uint_13
|
||||
OpStore %120 %121
|
||||
%124 = OpAccessChain %_ptr_StorageBuffer_mat2v4float %sb %uint_0 %idx %uint_14
|
||||
OpStore %124 %125
|
||||
%128 = OpAccessChain %_ptr_StorageBuffer_mat3v2float %sb %uint_0 %idx %uint_15
|
||||
OpStore %128 %129
|
||||
%132 = OpAccessChain %_ptr_StorageBuffer_mat3v3float %sb %uint_0 %idx %uint_16
|
||||
OpStore %132 %133
|
||||
%136 = OpAccessChain %_ptr_StorageBuffer_mat3v4float %sb %uint_0 %idx %uint_17
|
||||
OpStore %136 %137
|
||||
%140 = OpAccessChain %_ptr_StorageBuffer_mat4v2float %sb %uint_0 %idx %uint_18
|
||||
%72 = OpCompositeExtract %uint %dest_1 0
|
||||
%74 = OpAccessChain %_ptr_StorageBuffer_v3float %sb %uint_0 %72 %uint_19 %40
|
||||
%75 = OpCompositeExtract %v3float %value_1 0
|
||||
OpStore %74 %75
|
||||
%76 = OpCompositeExtract %uint %dest_1 0
|
||||
%77 = OpAccessChain %_ptr_StorageBuffer_v3float %sb %uint_0 %76 %uint_19 %int_1
|
||||
%78 = OpCompositeExtract %v3float %value_1 1
|
||||
OpStore %77 %78
|
||||
%79 = OpCompositeExtract %uint %dest_1 0
|
||||
%80 = OpAccessChain %_ptr_StorageBuffer_v3float %sb %uint_0 %79 %uint_19 %int_2
|
||||
%81 = OpCompositeExtract %v3float %value_1 2
|
||||
OpStore %80 %81
|
||||
%82 = OpCompositeExtract %uint %dest_1 0
|
||||
%84 = OpAccessChain %_ptr_StorageBuffer_v3float %sb %uint_0 %82 %uint_19 %int_3
|
||||
%86 = OpCompositeExtract %v3float %value_1 3
|
||||
OpStore %84 %86
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%assign_and_preserve_padding_3_sb_arr_X_arr2_vec3_f32 = OpFunction %void None %87
|
||||
%dest_2 = OpFunctionParameter %_arr_uint_uint_1
|
||||
%value_2 = OpFunctionParameter %_arr_v3float_uint_2
|
||||
%91 = OpLabel
|
||||
%i = OpVariable %_ptr_Function_uint Function %45
|
||||
%var_for_index = OpVariable %_ptr_Function__arr_v3float_uint_2 Function %106
|
||||
OpStore %i %45
|
||||
OpBranch %94
|
||||
%94 = OpLabel
|
||||
OpLoopMerge %95 %96 None
|
||||
OpBranch %97
|
||||
%97 = OpLabel
|
||||
%99 = OpLoad %uint %i
|
||||
%100 = OpULessThan %bool %99 %uint_2
|
||||
%98 = OpLogicalNot %bool %100
|
||||
OpSelectionMerge %102 None
|
||||
OpBranchConditional %98 %103 %102
|
||||
%103 = OpLabel
|
||||
OpBranch %95
|
||||
%102 = OpLabel
|
||||
OpStore %var_for_index %value_2
|
||||
%107 = OpCompositeExtract %uint %dest_2 0
|
||||
%109 = OpLoad %uint %i
|
||||
%110 = OpAccessChain %_ptr_StorageBuffer_v3float %sb %uint_0 %107 %uint_21 %109
|
||||
%111 = OpLoad %uint %i
|
||||
%113 = OpAccessChain %_ptr_Function_v3float %var_for_index %111
|
||||
%114 = OpLoad %v3float %113
|
||||
OpStore %110 %114
|
||||
OpBranch %96
|
||||
%96 = OpLabel
|
||||
%115 = OpLoad %uint %i
|
||||
%116 = OpIAdd %uint %115 %uint_1
|
||||
OpStore %i %116
|
||||
OpBranch %94
|
||||
%95 = OpLabel
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%main_inner = OpFunction %void None %117
|
||||
%idx = OpFunctionParameter %uint
|
||||
%120 = OpLabel
|
||||
%122 = OpAccessChain %_ptr_StorageBuffer_float %sb %uint_0 %idx %uint_0
|
||||
OpStore %122 %123
|
||||
%125 = OpAccessChain %_ptr_StorageBuffer_int %sb %uint_0 %idx %uint_1
|
||||
OpStore %125 %40
|
||||
%127 = OpAccessChain %_ptr_StorageBuffer_uint %sb %uint_0 %idx %uint_2
|
||||
OpStore %127 %45
|
||||
%129 = OpAccessChain %_ptr_StorageBuffer_v2float %sb %uint_0 %idx %uint_3
|
||||
OpStore %129 %130
|
||||
%133 = OpAccessChain %_ptr_StorageBuffer_v2int %sb %uint_0 %idx %uint_4
|
||||
OpStore %133 %134
|
||||
%137 = OpAccessChain %_ptr_StorageBuffer_v2uint %sb %uint_0 %idx %uint_5
|
||||
OpStore %137 %138
|
||||
%140 = OpAccessChain %_ptr_StorageBuffer_v3float %sb %uint_0 %idx %uint_6
|
||||
OpStore %140 %141
|
||||
%144 = OpAccessChain %_ptr_StorageBuffer_mat4v3float %sb %uint_0 %idx %uint_19
|
||||
%144 = OpAccessChain %_ptr_StorageBuffer_v3int %sb %uint_0 %idx %uint_7
|
||||
OpStore %144 %145
|
||||
%148 = OpAccessChain %_ptr_StorageBuffer_mat4v4float %sb %uint_0 %idx %uint_20
|
||||
%148 = OpAccessChain %_ptr_StorageBuffer_v3uint %sb %uint_0 %idx %uint_8
|
||||
OpStore %148 %149
|
||||
%151 = OpCompositeConstruct %_arr_uint_uint_1 %idx
|
||||
%150 = OpFunctionCall %void %assign_and_preserve_padding_sb_arr_X_arr2_vec3_f32 %151 %54
|
||||
%152 = OpAccessChain %_ptr_StorageBuffer_v4float %sb %uint_0 %idx %uint_9
|
||||
OpStore %152 %153
|
||||
%156 = OpAccessChain %_ptr_StorageBuffer_v4int %sb %uint_0 %idx %uint_10
|
||||
OpStore %156 %157
|
||||
%160 = OpAccessChain %_ptr_StorageBuffer_v4uint %sb %uint_0 %idx %uint_11
|
||||
OpStore %160 %161
|
||||
%164 = OpAccessChain %_ptr_StorageBuffer_mat2v2float %sb %uint_0 %idx %uint_12
|
||||
OpStore %164 %165
|
||||
%167 = OpCompositeConstruct %_arr_uint_uint_1 %idx
|
||||
%166 = OpFunctionCall %void %assign_and_preserve_padding_sb_arr_X_mat2x3_f32 %167 %168
|
||||
%171 = OpAccessChain %_ptr_StorageBuffer_mat2v4float %sb %uint_0 %idx %uint_14
|
||||
OpStore %171 %172
|
||||
%175 = OpAccessChain %_ptr_StorageBuffer_mat3v2float %sb %uint_0 %idx %uint_15
|
||||
OpStore %175 %176
|
||||
%177 = OpFunctionCall %void %assign_and_preserve_padding_1_sb_arr_X_mat3x3_f32 %167 %178
|
||||
%181 = OpAccessChain %_ptr_StorageBuffer_mat3v4float %sb %uint_0 %idx %uint_17
|
||||
OpStore %181 %182
|
||||
%185 = OpAccessChain %_ptr_StorageBuffer_mat4v2float %sb %uint_0 %idx %uint_18
|
||||
OpStore %185 %186
|
||||
%187 = OpFunctionCall %void %assign_and_preserve_padding_2_sb_arr_X_mat4x3_f32 %167 %188
|
||||
%191 = OpAccessChain %_ptr_StorageBuffer_mat4v4float %sb %uint_0 %idx %uint_20
|
||||
OpStore %191 %192
|
||||
%193 = OpFunctionCall %void %assign_and_preserve_padding_3_sb_arr_X_arr2_vec3_f32 %167 %106
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%main = OpFunction %void None %152
|
||||
%154 = OpLabel
|
||||
%156 = OpLoad %uint %idx_1
|
||||
%155 = OpFunctionCall %void %main_inner %156
|
||||
%main = OpFunction %void None %194
|
||||
%196 = OpLabel
|
||||
%198 = OpLoad %uint %idx_1
|
||||
%197 = OpFunctionCall %void %main_inner %198
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
|
||||
@@ -57,7 +57,43 @@ layout(binding = 0, std430) buffer S_ssbo {
|
||||
Inner arr[];
|
||||
} sb;
|
||||
|
||||
void assign_and_preserve_padding_sb_arr_X_arr2_vec3_f32(uint dest[1], vec3 value[2]) {
|
||||
void assign_and_preserve_padding_sb_arr_X_mat2x3_f32(uint dest[1], mat2x3 value) {
|
||||
sb.arr[dest[0]].mat2x3_f32[0] = value[0u];
|
||||
sb.arr[dest[0]].mat2x3_f32[1] = value[1u];
|
||||
}
|
||||
|
||||
void assign_and_preserve_padding_1_sb_arr_X_mat3x3_f32(uint dest[1], mat3 value) {
|
||||
sb.arr[dest[0]].mat3x3_f32[0] = value[0u];
|
||||
sb.arr[dest[0]].mat3x3_f32[1] = value[1u];
|
||||
sb.arr[dest[0]].mat3x3_f32[2] = value[2u];
|
||||
}
|
||||
|
||||
void assign_and_preserve_padding_2_sb_arr_X_mat4x3_f32(uint dest[1], mat4x3 value) {
|
||||
sb.arr[dest[0]].mat4x3_f32[0] = value[0u];
|
||||
sb.arr[dest[0]].mat4x3_f32[1] = value[1u];
|
||||
sb.arr[dest[0]].mat4x3_f32[2] = value[2u];
|
||||
sb.arr[dest[0]].mat4x3_f32[3] = value[3u];
|
||||
}
|
||||
|
||||
void assign_and_preserve_padding_3_sb_arr_X_mat2x3_f16(uint dest[1], f16mat2x3 value) {
|
||||
sb.arr[dest[0]].mat2x3_f16[0] = value[0u];
|
||||
sb.arr[dest[0]].mat2x3_f16[1] = value[1u];
|
||||
}
|
||||
|
||||
void assign_and_preserve_padding_4_sb_arr_X_mat3x3_f16(uint dest[1], f16mat3 value) {
|
||||
sb.arr[dest[0]].mat3x3_f16[0] = value[0u];
|
||||
sb.arr[dest[0]].mat3x3_f16[1] = value[1u];
|
||||
sb.arr[dest[0]].mat3x3_f16[2] = value[2u];
|
||||
}
|
||||
|
||||
void assign_and_preserve_padding_5_sb_arr_X_mat4x3_f16(uint dest[1], f16mat4x3 value) {
|
||||
sb.arr[dest[0]].mat4x3_f16[0] = value[0u];
|
||||
sb.arr[dest[0]].mat4x3_f16[1] = value[1u];
|
||||
sb.arr[dest[0]].mat4x3_f16[2] = value[2u];
|
||||
sb.arr[dest[0]].mat4x3_f16[3] = value[3u];
|
||||
}
|
||||
|
||||
void assign_and_preserve_padding_6_sb_arr_X_arr2_vec3_f32(uint dest[1], vec3 value[2]) {
|
||||
{
|
||||
for(uint i = 0u; (i < 2u); i = (i + 1u)) {
|
||||
sb.arr[dest[0]].arr2_vec3_f32[i] = value[i];
|
||||
@@ -83,28 +119,34 @@ void tint_symbol(uint idx) {
|
||||
sb.arr[idx].vec4_u32 = uvec4(0u);
|
||||
sb.arr[idx].vec4_f16 = f16vec4(0.0hf);
|
||||
sb.arr[idx].mat2x2_f32 = mat2(vec2(0.0f), vec2(0.0f));
|
||||
sb.arr[idx].mat2x3_f32 = mat2x3(vec3(0.0f), vec3(0.0f));
|
||||
uint tint_symbol_1[1] = uint[1](idx);
|
||||
assign_and_preserve_padding_sb_arr_X_mat2x3_f32(tint_symbol_1, mat2x3(vec3(0.0f), vec3(0.0f)));
|
||||
sb.arr[idx].mat2x4_f32 = mat2x4(vec4(0.0f), vec4(0.0f));
|
||||
sb.arr[idx].mat3x2_f32 = mat3x2(vec2(0.0f), vec2(0.0f), vec2(0.0f));
|
||||
sb.arr[idx].mat3x3_f32 = mat3(vec3(0.0f), vec3(0.0f), vec3(0.0f));
|
||||
uint tint_symbol_2[1] = uint[1](idx);
|
||||
assign_and_preserve_padding_1_sb_arr_X_mat3x3_f32(tint_symbol_2, mat3(vec3(0.0f), vec3(0.0f), vec3(0.0f)));
|
||||
sb.arr[idx].mat3x4_f32 = mat3x4(vec4(0.0f), vec4(0.0f), vec4(0.0f));
|
||||
sb.arr[idx].mat4x2_f32 = mat4x2(vec2(0.0f), vec2(0.0f), vec2(0.0f), vec2(0.0f));
|
||||
sb.arr[idx].mat4x3_f32 = mat4x3(vec3(0.0f), vec3(0.0f), vec3(0.0f), vec3(0.0f));
|
||||
uint tint_symbol_3[1] = uint[1](idx);
|
||||
assign_and_preserve_padding_2_sb_arr_X_mat4x3_f32(tint_symbol_3, mat4x3(vec3(0.0f), vec3(0.0f), vec3(0.0f), vec3(0.0f)));
|
||||
sb.arr[idx].mat4x4_f32 = mat4(vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f));
|
||||
sb.arr[idx].mat2x2_f16 = f16mat2(f16vec2(0.0hf), f16vec2(0.0hf));
|
||||
sb.arr[idx].mat2x3_f16 = f16mat2x3(f16vec3(0.0hf), f16vec3(0.0hf));
|
||||
uint tint_symbol_4[1] = uint[1](idx);
|
||||
assign_and_preserve_padding_3_sb_arr_X_mat2x3_f16(tint_symbol_4, f16mat2x3(f16vec3(0.0hf), f16vec3(0.0hf)));
|
||||
sb.arr[idx].mat2x4_f16 = f16mat2x4(f16vec4(0.0hf), f16vec4(0.0hf));
|
||||
sb.arr[idx].mat3x2_f16 = f16mat3x2(f16vec2(0.0hf), f16vec2(0.0hf), f16vec2(0.0hf));
|
||||
sb.arr[idx].mat3x3_f16 = f16mat3(f16vec3(0.0hf), f16vec3(0.0hf), f16vec3(0.0hf));
|
||||
uint tint_symbol_5[1] = uint[1](idx);
|
||||
assign_and_preserve_padding_4_sb_arr_X_mat3x3_f16(tint_symbol_5, f16mat3(f16vec3(0.0hf), f16vec3(0.0hf), f16vec3(0.0hf)));
|
||||
sb.arr[idx].mat3x4_f16 = f16mat3x4(f16vec4(0.0hf), f16vec4(0.0hf), f16vec4(0.0hf));
|
||||
sb.arr[idx].mat4x2_f16 = f16mat4x2(f16vec2(0.0hf), f16vec2(0.0hf), f16vec2(0.0hf), f16vec2(0.0hf));
|
||||
sb.arr[idx].mat4x3_f16 = f16mat4x3(f16vec3(0.0hf), f16vec3(0.0hf), f16vec3(0.0hf), f16vec3(0.0hf));
|
||||
uint tint_symbol_6[1] = uint[1](idx);
|
||||
assign_and_preserve_padding_5_sb_arr_X_mat4x3_f16(tint_symbol_6, f16mat4x3(f16vec3(0.0hf), f16vec3(0.0hf), f16vec3(0.0hf), f16vec3(0.0hf)));
|
||||
sb.arr[idx].mat4x4_f16 = f16mat4(f16vec4(0.0hf), f16vec4(0.0hf), f16vec4(0.0hf), f16vec4(0.0hf));
|
||||
uint tint_symbol_1[1] = uint[1](idx);
|
||||
vec3 tint_symbol_2[2] = vec3[2](vec3(0.0f), vec3(0.0f));
|
||||
assign_and_preserve_padding_sb_arr_X_arr2_vec3_f32(tint_symbol_1, tint_symbol_2);
|
||||
f16mat4x2 tint_symbol_3[2] = f16mat4x2[2](f16mat4x2(f16vec2(0.0hf), f16vec2(0.0hf), f16vec2(0.0hf), f16vec2(0.0hf)), f16mat4x2(f16vec2(0.0hf), f16vec2(0.0hf), f16vec2(0.0hf), f16vec2(0.0hf)));
|
||||
sb.arr[idx].arr2_mat4x2_f16 = tint_symbol_3;
|
||||
uint tint_symbol_7[1] = uint[1](idx);
|
||||
vec3 tint_symbol_8[2] = vec3[2](vec3(0.0f), vec3(0.0f));
|
||||
assign_and_preserve_padding_6_sb_arr_X_arr2_vec3_f32(tint_symbol_7, tint_symbol_8);
|
||||
f16mat4x2 tint_symbol_9[2] = f16mat4x2[2](f16mat4x2(f16vec2(0.0hf), f16vec2(0.0hf), f16vec2(0.0hf), f16vec2(0.0hf)), f16mat4x2(f16vec2(0.0hf), f16vec2(0.0hf), f16vec2(0.0hf), f16vec2(0.0hf)));
|
||||
sb.arr[idx].arr2_mat4x2_f16 = tint_symbol_9;
|
||||
}
|
||||
|
||||
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
|
||||
|
||||
@@ -67,7 +67,43 @@ struct S {
|
||||
/* 0x0000 */ tint_array<Inner, 1> arr;
|
||||
};
|
||||
|
||||
void assign_and_preserve_padding(device tint_array<float3, 2>* const dest, tint_array<float3, 2> value) {
|
||||
void assign_and_preserve_padding(device float2x3* const dest, float2x3 value) {
|
||||
(*(dest))[0u] = value[0u];
|
||||
(*(dest))[1u] = value[1u];
|
||||
}
|
||||
|
||||
void assign_and_preserve_padding_1(device float3x3* const dest, float3x3 value) {
|
||||
(*(dest))[0u] = value[0u];
|
||||
(*(dest))[1u] = value[1u];
|
||||
(*(dest))[2u] = value[2u];
|
||||
}
|
||||
|
||||
void assign_and_preserve_padding_2(device float4x3* const dest, float4x3 value) {
|
||||
(*(dest))[0u] = value[0u];
|
||||
(*(dest))[1u] = value[1u];
|
||||
(*(dest))[2u] = value[2u];
|
||||
(*(dest))[3u] = value[3u];
|
||||
}
|
||||
|
||||
void assign_and_preserve_padding_3(device half2x3* const dest, half2x3 value) {
|
||||
(*(dest))[0u] = value[0u];
|
||||
(*(dest))[1u] = value[1u];
|
||||
}
|
||||
|
||||
void assign_and_preserve_padding_4(device half3x3* const dest, half3x3 value) {
|
||||
(*(dest))[0u] = value[0u];
|
||||
(*(dest))[1u] = value[1u];
|
||||
(*(dest))[2u] = value[2u];
|
||||
}
|
||||
|
||||
void assign_and_preserve_padding_5(device half4x3* const dest, half4x3 value) {
|
||||
(*(dest))[0u] = value[0u];
|
||||
(*(dest))[1u] = value[1u];
|
||||
(*(dest))[2u] = value[2u];
|
||||
(*(dest))[3u] = value[3u];
|
||||
}
|
||||
|
||||
void assign_and_preserve_padding_6(device tint_array<float3, 2>* const dest, tint_array<float3, 2> value) {
|
||||
for(uint i = 0u; (i < 2u); i = (i + 1u)) {
|
||||
(*(dest))[i] = value[i];
|
||||
}
|
||||
@@ -91,25 +127,25 @@ void tint_symbol_inner(uint idx, device S* const tint_symbol_3) {
|
||||
(*(tint_symbol_3)).arr[idx].vec4_u32 = uint4(0u);
|
||||
(*(tint_symbol_3)).arr[idx].vec4_f16 = half4(0.0h);
|
||||
(*(tint_symbol_3)).arr[idx].mat2x2_f32 = float2x2(float2(0.0f), float2(0.0f));
|
||||
(*(tint_symbol_3)).arr[idx].mat2x3_f32 = float2x3(float3(0.0f), float3(0.0f));
|
||||
assign_and_preserve_padding(&((*(tint_symbol_3)).arr[idx].mat2x3_f32), float2x3(float3(0.0f), float3(0.0f)));
|
||||
(*(tint_symbol_3)).arr[idx].mat2x4_f32 = float2x4(float4(0.0f), float4(0.0f));
|
||||
(*(tint_symbol_3)).arr[idx].mat3x2_f32 = float3x2(float2(0.0f), float2(0.0f), float2(0.0f));
|
||||
(*(tint_symbol_3)).arr[idx].mat3x3_f32 = float3x3(float3(0.0f), float3(0.0f), float3(0.0f));
|
||||
assign_and_preserve_padding_1(&((*(tint_symbol_3)).arr[idx].mat3x3_f32), float3x3(float3(0.0f), float3(0.0f), float3(0.0f)));
|
||||
(*(tint_symbol_3)).arr[idx].mat3x4_f32 = float3x4(float4(0.0f), float4(0.0f), float4(0.0f));
|
||||
(*(tint_symbol_3)).arr[idx].mat4x2_f32 = float4x2(float2(0.0f), float2(0.0f), float2(0.0f), float2(0.0f));
|
||||
(*(tint_symbol_3)).arr[idx].mat4x3_f32 = float4x3(float3(0.0f), float3(0.0f), float3(0.0f), float3(0.0f));
|
||||
assign_and_preserve_padding_2(&((*(tint_symbol_3)).arr[idx].mat4x3_f32), float4x3(float3(0.0f), float3(0.0f), float3(0.0f), float3(0.0f)));
|
||||
(*(tint_symbol_3)).arr[idx].mat4x4_f32 = float4x4(float4(0.0f), float4(0.0f), float4(0.0f), float4(0.0f));
|
||||
(*(tint_symbol_3)).arr[idx].mat2x2_f16 = half2x2(half2(0.0h), half2(0.0h));
|
||||
(*(tint_symbol_3)).arr[idx].mat2x3_f16 = half2x3(half3(0.0h), half3(0.0h));
|
||||
assign_and_preserve_padding_3(&((*(tint_symbol_3)).arr[idx].mat2x3_f16), half2x3(half3(0.0h), half3(0.0h)));
|
||||
(*(tint_symbol_3)).arr[idx].mat2x4_f16 = half2x4(half4(0.0h), half4(0.0h));
|
||||
(*(tint_symbol_3)).arr[idx].mat3x2_f16 = half3x2(half2(0.0h), half2(0.0h), half2(0.0h));
|
||||
(*(tint_symbol_3)).arr[idx].mat3x3_f16 = half3x3(half3(0.0h), half3(0.0h), half3(0.0h));
|
||||
assign_and_preserve_padding_4(&((*(tint_symbol_3)).arr[idx].mat3x3_f16), half3x3(half3(0.0h), half3(0.0h), half3(0.0h)));
|
||||
(*(tint_symbol_3)).arr[idx].mat3x4_f16 = half3x4(half4(0.0h), half4(0.0h), half4(0.0h));
|
||||
(*(tint_symbol_3)).arr[idx].mat4x2_f16 = half4x2(half2(0.0h), half2(0.0h), half2(0.0h), half2(0.0h));
|
||||
(*(tint_symbol_3)).arr[idx].mat4x3_f16 = half4x3(half3(0.0h), half3(0.0h), half3(0.0h), half3(0.0h));
|
||||
assign_and_preserve_padding_5(&((*(tint_symbol_3)).arr[idx].mat4x3_f16), half4x3(half3(0.0h), half3(0.0h), half3(0.0h), half3(0.0h)));
|
||||
(*(tint_symbol_3)).arr[idx].mat4x4_f16 = half4x4(half4(0.0h), half4(0.0h), half4(0.0h), half4(0.0h));
|
||||
tint_array<float3, 2> const tint_symbol_1 = tint_array<float3, 2>{};
|
||||
assign_and_preserve_padding(&((*(tint_symbol_3)).arr[idx].arr2_vec3_f32), tint_symbol_1);
|
||||
assign_and_preserve_padding_6(&((*(tint_symbol_3)).arr[idx].arr2_vec3_f32), tint_symbol_1);
|
||||
tint_array<half4x2, 2> const tint_symbol_2 = tint_array<half4x2, 2>{};
|
||||
(*(tint_symbol_3)).arr[idx].arr2_mat4x2_f16 = tint_symbol_2;
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
; SPIR-V
|
||||
; Version: 1.3
|
||||
; Generator: Google Tint Compiler; 0
|
||||
; Bound: 227
|
||||
; Bound: 308
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
OpCapability Float16
|
||||
@@ -52,9 +52,27 @@
|
||||
OpMemberName %Inner 34 "arr2_vec3_f32"
|
||||
OpMemberName %Inner 35 "arr2_mat4x2_f16"
|
||||
OpName %sb "sb"
|
||||
OpName %assign_and_preserve_padding_sb_arr_X_arr2_vec3_f32 "assign_and_preserve_padding_sb_arr_X_arr2_vec3_f32"
|
||||
OpName %assign_and_preserve_padding_sb_arr_X_mat2x3_f32 "assign_and_preserve_padding_sb_arr_X_mat2x3_f32"
|
||||
OpName %dest "dest"
|
||||
OpName %value "value"
|
||||
OpName %assign_and_preserve_padding_1_sb_arr_X_mat3x3_f32 "assign_and_preserve_padding_1_sb_arr_X_mat3x3_f32"
|
||||
OpName %dest_0 "dest"
|
||||
OpName %value_0 "value"
|
||||
OpName %assign_and_preserve_padding_2_sb_arr_X_mat4x3_f32 "assign_and_preserve_padding_2_sb_arr_X_mat4x3_f32"
|
||||
OpName %dest_1 "dest"
|
||||
OpName %value_1 "value"
|
||||
OpName %assign_and_preserve_padding_3_sb_arr_X_mat2x3_f16 "assign_and_preserve_padding_3_sb_arr_X_mat2x3_f16"
|
||||
OpName %dest_2 "dest"
|
||||
OpName %value_2 "value"
|
||||
OpName %assign_and_preserve_padding_4_sb_arr_X_mat3x3_f16 "assign_and_preserve_padding_4_sb_arr_X_mat3x3_f16"
|
||||
OpName %dest_3 "dest"
|
||||
OpName %value_3 "value"
|
||||
OpName %assign_and_preserve_padding_5_sb_arr_X_mat4x3_f16 "assign_and_preserve_padding_5_sb_arr_X_mat4x3_f16"
|
||||
OpName %dest_4 "dest"
|
||||
OpName %value_4 "value"
|
||||
OpName %assign_and_preserve_padding_6_sb_arr_X_arr2_vec3_f32 "assign_and_preserve_padding_6_sb_arr_X_arr2_vec3_f32"
|
||||
OpName %dest_5 "dest"
|
||||
OpName %value_5 "value"
|
||||
OpName %i "i"
|
||||
OpName %var_for_index "var_for_index"
|
||||
OpName %main_inner "main_inner"
|
||||
@@ -190,235 +208,340 @@
|
||||
%void = OpTypeVoid
|
||||
%uint_1 = OpConstant %uint 1
|
||||
%_arr_uint_uint_1 = OpTypeArray %uint %uint_1
|
||||
%45 = OpTypeFunction %void %_arr_uint_uint_1 %_arr_v3float_uint_2
|
||||
%53 = OpConstantNull %uint
|
||||
%45 = OpTypeFunction %void %_arr_uint_uint_1 %mat2v3float
|
||||
%uint_0 = OpConstant %uint 0
|
||||
%54 = OpConstantNull %int
|
||||
%uint_17 = OpConstant %uint 17
|
||||
%_ptr_StorageBuffer_v3float = OpTypePointer StorageBuffer %v3float
|
||||
%59 = OpConstantNull %uint
|
||||
%int_1 = OpConstant %int 1
|
||||
%65 = OpTypeFunction %void %_arr_uint_uint_1 %mat3v3float
|
||||
%uint_20 = OpConstant %uint 20
|
||||
%int_2 = OpConstant %int 2
|
||||
%81 = OpTypeFunction %void %_arr_uint_uint_1 %mat4v3float
|
||||
%uint_23 = OpConstant %uint 23
|
||||
%int_3 = OpConstant %int 3
|
||||
%uint_3 = OpConstant %uint 3
|
||||
%101 = OpTypeFunction %void %_arr_uint_uint_1 %mat2v3half
|
||||
%uint_26 = OpConstant %uint 26
|
||||
%_ptr_StorageBuffer_v3half = OpTypePointer StorageBuffer %v3half
|
||||
%114 = OpTypeFunction %void %_arr_uint_uint_1 %mat3v3half
|
||||
%uint_29 = OpConstant %uint 29
|
||||
%129 = OpTypeFunction %void %_arr_uint_uint_1 %mat4v3half
|
||||
%uint_32 = OpConstant %uint 32
|
||||
%147 = OpTypeFunction %void %_arr_uint_uint_1 %_arr_v3float_uint_2
|
||||
%_ptr_Function_uint = OpTypePointer Function %uint
|
||||
%bool = OpTypeBool
|
||||
%_ptr_Function__arr_v3float_uint_2 = OpTypePointer Function %_arr_v3float_uint_2
|
||||
%68 = OpConstantNull %_arr_v3float_uint_2
|
||||
%uint_0 = OpConstant %uint 0
|
||||
%70 = OpConstantNull %int
|
||||
%166 = OpConstantNull %_arr_v3float_uint_2
|
||||
%uint_34 = OpConstant %uint 34
|
||||
%_ptr_StorageBuffer_v3float = OpTypePointer StorageBuffer %v3float
|
||||
%_ptr_Function_v3float = OpTypePointer Function %v3float
|
||||
%82 = OpTypeFunction %void %uint
|
||||
%177 = OpTypeFunction %void %uint
|
||||
%_ptr_StorageBuffer_float = OpTypePointer StorageBuffer %float
|
||||
%88 = OpConstantNull %float
|
||||
%183 = OpConstantNull %float
|
||||
%_ptr_StorageBuffer_int = OpTypePointer StorageBuffer %int
|
||||
%_ptr_StorageBuffer_uint = OpTypePointer StorageBuffer %uint
|
||||
%uint_3 = OpConstant %uint 3
|
||||
%_ptr_StorageBuffer_half = OpTypePointer StorageBuffer %half
|
||||
%96 = OpConstantNull %half
|
||||
%190 = OpConstantNull %half
|
||||
%uint_4 = OpConstant %uint 4
|
||||
%_ptr_StorageBuffer_v2float = OpTypePointer StorageBuffer %v2float
|
||||
%100 = OpConstantNull %v2float
|
||||
%194 = OpConstantNull %v2float
|
||||
%uint_5 = OpConstant %uint 5
|
||||
%_ptr_StorageBuffer_v2int = OpTypePointer StorageBuffer %v2int
|
||||
%104 = OpConstantNull %v2int
|
||||
%198 = OpConstantNull %v2int
|
||||
%uint_6 = OpConstant %uint 6
|
||||
%_ptr_StorageBuffer_v2uint = OpTypePointer StorageBuffer %v2uint
|
||||
%108 = OpConstantNull %v2uint
|
||||
%202 = OpConstantNull %v2uint
|
||||
%uint_7 = OpConstant %uint 7
|
||||
%_ptr_StorageBuffer_v2half = OpTypePointer StorageBuffer %v2half
|
||||
%112 = OpConstantNull %v2half
|
||||
%206 = OpConstantNull %v2half
|
||||
%uint_8 = OpConstant %uint 8
|
||||
%115 = OpConstantNull %v3float
|
||||
%209 = OpConstantNull %v3float
|
||||
%uint_9 = OpConstant %uint 9
|
||||
%_ptr_StorageBuffer_v3int = OpTypePointer StorageBuffer %v3int
|
||||
%119 = OpConstantNull %v3int
|
||||
%213 = OpConstantNull %v3int
|
||||
%uint_10 = OpConstant %uint 10
|
||||
%_ptr_StorageBuffer_v3uint = OpTypePointer StorageBuffer %v3uint
|
||||
%123 = OpConstantNull %v3uint
|
||||
%217 = OpConstantNull %v3uint
|
||||
%uint_11 = OpConstant %uint 11
|
||||
%_ptr_StorageBuffer_v3half = OpTypePointer StorageBuffer %v3half
|
||||
%127 = OpConstantNull %v3half
|
||||
%220 = OpConstantNull %v3half
|
||||
%uint_12 = OpConstant %uint 12
|
||||
%_ptr_StorageBuffer_v4float = OpTypePointer StorageBuffer %v4float
|
||||
%131 = OpConstantNull %v4float
|
||||
%224 = OpConstantNull %v4float
|
||||
%uint_13 = OpConstant %uint 13
|
||||
%_ptr_StorageBuffer_v4int = OpTypePointer StorageBuffer %v4int
|
||||
%135 = OpConstantNull %v4int
|
||||
%228 = OpConstantNull %v4int
|
||||
%uint_14 = OpConstant %uint 14
|
||||
%_ptr_StorageBuffer_v4uint = OpTypePointer StorageBuffer %v4uint
|
||||
%139 = OpConstantNull %v4uint
|
||||
%232 = OpConstantNull %v4uint
|
||||
%uint_15 = OpConstant %uint 15
|
||||
%_ptr_StorageBuffer_v4half = OpTypePointer StorageBuffer %v4half
|
||||
%143 = OpConstantNull %v4half
|
||||
%236 = OpConstantNull %v4half
|
||||
%uint_16 = OpConstant %uint 16
|
||||
%_ptr_StorageBuffer_mat2v2float = OpTypePointer StorageBuffer %mat2v2float
|
||||
%147 = OpConstantNull %mat2v2float
|
||||
%uint_17 = OpConstant %uint 17
|
||||
%_ptr_StorageBuffer_mat2v3float = OpTypePointer StorageBuffer %mat2v3float
|
||||
%151 = OpConstantNull %mat2v3float
|
||||
%240 = OpConstantNull %mat2v2float
|
||||
%243 = OpConstantNull %mat2v3float
|
||||
%uint_18 = OpConstant %uint 18
|
||||
%_ptr_StorageBuffer_mat2v4float = OpTypePointer StorageBuffer %mat2v4float
|
||||
%155 = OpConstantNull %mat2v4float
|
||||
%247 = OpConstantNull %mat2v4float
|
||||
%uint_19 = OpConstant %uint 19
|
||||
%_ptr_StorageBuffer_mat3v2float = OpTypePointer StorageBuffer %mat3v2float
|
||||
%159 = OpConstantNull %mat3v2float
|
||||
%uint_20 = OpConstant %uint 20
|
||||
%_ptr_StorageBuffer_mat3v3float = OpTypePointer StorageBuffer %mat3v3float
|
||||
%163 = OpConstantNull %mat3v3float
|
||||
%251 = OpConstantNull %mat3v2float
|
||||
%253 = OpConstantNull %mat3v3float
|
||||
%uint_21 = OpConstant %uint 21
|
||||
%_ptr_StorageBuffer_mat3v4float = OpTypePointer StorageBuffer %mat3v4float
|
||||
%167 = OpConstantNull %mat3v4float
|
||||
%257 = OpConstantNull %mat3v4float
|
||||
%uint_22 = OpConstant %uint 22
|
||||
%_ptr_StorageBuffer_mat4v2float = OpTypePointer StorageBuffer %mat4v2float
|
||||
%171 = OpConstantNull %mat4v2float
|
||||
%uint_23 = OpConstant %uint 23
|
||||
%_ptr_StorageBuffer_mat4v3float = OpTypePointer StorageBuffer %mat4v3float
|
||||
%175 = OpConstantNull %mat4v3float
|
||||
%261 = OpConstantNull %mat4v2float
|
||||
%263 = OpConstantNull %mat4v3float
|
||||
%uint_24 = OpConstant %uint 24
|
||||
%_ptr_StorageBuffer_mat4v4float = OpTypePointer StorageBuffer %mat4v4float
|
||||
%179 = OpConstantNull %mat4v4float
|
||||
%267 = OpConstantNull %mat4v4float
|
||||
%uint_25 = OpConstant %uint 25
|
||||
%_ptr_StorageBuffer_mat2v2half = OpTypePointer StorageBuffer %mat2v2half
|
||||
%183 = OpConstantNull %mat2v2half
|
||||
%uint_26 = OpConstant %uint 26
|
||||
%_ptr_StorageBuffer_mat2v3half = OpTypePointer StorageBuffer %mat2v3half
|
||||
%187 = OpConstantNull %mat2v3half
|
||||
%271 = OpConstantNull %mat2v2half
|
||||
%273 = OpConstantNull %mat2v3half
|
||||
%uint_27 = OpConstant %uint 27
|
||||
%_ptr_StorageBuffer_mat2v4half = OpTypePointer StorageBuffer %mat2v4half
|
||||
%191 = OpConstantNull %mat2v4half
|
||||
%277 = OpConstantNull %mat2v4half
|
||||
%uint_28 = OpConstant %uint 28
|
||||
%_ptr_StorageBuffer_mat3v2half = OpTypePointer StorageBuffer %mat3v2half
|
||||
%195 = OpConstantNull %mat3v2half
|
||||
%uint_29 = OpConstant %uint 29
|
||||
%_ptr_StorageBuffer_mat3v3half = OpTypePointer StorageBuffer %mat3v3half
|
||||
%199 = OpConstantNull %mat3v3half
|
||||
%281 = OpConstantNull %mat3v2half
|
||||
%283 = OpConstantNull %mat3v3half
|
||||
%uint_30 = OpConstant %uint 30
|
||||
%_ptr_StorageBuffer_mat3v4half = OpTypePointer StorageBuffer %mat3v4half
|
||||
%203 = OpConstantNull %mat3v4half
|
||||
%287 = OpConstantNull %mat3v4half
|
||||
%uint_31 = OpConstant %uint 31
|
||||
%_ptr_StorageBuffer_mat4v2half = OpTypePointer StorageBuffer %mat4v2half
|
||||
%207 = OpConstantNull %mat4v2half
|
||||
%uint_32 = OpConstant %uint 32
|
||||
%_ptr_StorageBuffer_mat4v3half = OpTypePointer StorageBuffer %mat4v3half
|
||||
%211 = OpConstantNull %mat4v3half
|
||||
%291 = OpConstantNull %mat4v2half
|
||||
%293 = OpConstantNull %mat4v3half
|
||||
%uint_33 = OpConstant %uint 33
|
||||
%_ptr_StorageBuffer_mat4v4half = OpTypePointer StorageBuffer %mat4v4half
|
||||
%215 = OpConstantNull %mat4v4half
|
||||
%297 = OpConstantNull %mat4v4half
|
||||
%uint_35 = OpConstant %uint 35
|
||||
%_ptr_StorageBuffer__arr_mat4v2half_uint_2 = OpTypePointer StorageBuffer %_arr_mat4v2half_uint_2
|
||||
%221 = OpConstantNull %_arr_mat4v2half_uint_2
|
||||
%222 = OpTypeFunction %void
|
||||
%assign_and_preserve_padding_sb_arr_X_arr2_vec3_f32 = OpFunction %void None %45
|
||||
%302 = OpConstantNull %_arr_mat4v2half_uint_2
|
||||
%303 = OpTypeFunction %void
|
||||
%assign_and_preserve_padding_sb_arr_X_mat2x3_f32 = OpFunction %void None %45
|
||||
%dest = OpFunctionParameter %_arr_uint_uint_1
|
||||
%value = OpFunctionParameter %_arr_v3float_uint_2
|
||||
%value = OpFunctionParameter %mat2v3float
|
||||
%52 = OpLabel
|
||||
%i = OpVariable %_ptr_Function_uint Function %53
|
||||
%var_for_index = OpVariable %_ptr_Function__arr_v3float_uint_2 Function %68
|
||||
OpStore %i %53
|
||||
OpBranch %56
|
||||
%56 = OpLabel
|
||||
OpLoopMerge %57 %58 None
|
||||
OpBranch %59
|
||||
%59 = OpLabel
|
||||
%61 = OpLoad %uint %i
|
||||
%62 = OpULessThan %bool %61 %uint_2
|
||||
%60 = OpLogicalNot %bool %62
|
||||
OpSelectionMerge %64 None
|
||||
OpBranchConditional %60 %65 %64
|
||||
%65 = OpLabel
|
||||
OpBranch %57
|
||||
%64 = OpLabel
|
||||
OpStore %var_for_index %value
|
||||
%71 = OpCompositeExtract %uint %dest 0
|
||||
%73 = OpLoad %uint %i
|
||||
%75 = OpAccessChain %_ptr_StorageBuffer_v3float %sb %uint_0 %71 %uint_34 %73
|
||||
%76 = OpLoad %uint %i
|
||||
%78 = OpAccessChain %_ptr_Function_v3float %var_for_index %76
|
||||
%79 = OpLoad %v3float %78
|
||||
OpStore %75 %79
|
||||
OpBranch %58
|
||||
%58 = OpLabel
|
||||
%80 = OpLoad %uint %i
|
||||
%81 = OpIAdd %uint %80 %uint_1
|
||||
OpStore %i %81
|
||||
OpBranch %56
|
||||
%57 = OpLabel
|
||||
%55 = OpCompositeExtract %uint %dest 0
|
||||
%58 = OpAccessChain %_ptr_StorageBuffer_v3float %sb %uint_0 %55 %uint_17 %54
|
||||
%60 = OpCompositeExtract %v3float %value 0
|
||||
OpStore %58 %60
|
||||
%61 = OpCompositeExtract %uint %dest 0
|
||||
%63 = OpAccessChain %_ptr_StorageBuffer_v3float %sb %uint_0 %61 %uint_17 %int_1
|
||||
%64 = OpCompositeExtract %v3float %value 1
|
||||
OpStore %63 %64
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%main_inner = OpFunction %void None %82
|
||||
%idx = OpFunctionParameter %uint
|
||||
%assign_and_preserve_padding_1_sb_arr_X_mat3x3_f32 = OpFunction %void None %65
|
||||
%dest_0 = OpFunctionParameter %_arr_uint_uint_1
|
||||
%value_0 = OpFunctionParameter %mat3v3float
|
||||
%69 = OpLabel
|
||||
%70 = OpCompositeExtract %uint %dest_0 0
|
||||
%72 = OpAccessChain %_ptr_StorageBuffer_v3float %sb %uint_0 %70 %uint_20 %54
|
||||
%73 = OpCompositeExtract %v3float %value_0 0
|
||||
OpStore %72 %73
|
||||
%74 = OpCompositeExtract %uint %dest_0 0
|
||||
%75 = OpAccessChain %_ptr_StorageBuffer_v3float %sb %uint_0 %74 %uint_20 %int_1
|
||||
%76 = OpCompositeExtract %v3float %value_0 1
|
||||
OpStore %75 %76
|
||||
%77 = OpCompositeExtract %uint %dest_0 0
|
||||
%79 = OpAccessChain %_ptr_StorageBuffer_v3float %sb %uint_0 %77 %uint_20 %int_2
|
||||
%80 = OpCompositeExtract %v3float %value_0 2
|
||||
OpStore %79 %80
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%assign_and_preserve_padding_2_sb_arr_X_mat4x3_f32 = OpFunction %void None %81
|
||||
%dest_1 = OpFunctionParameter %_arr_uint_uint_1
|
||||
%value_1 = OpFunctionParameter %mat4v3float
|
||||
%85 = OpLabel
|
||||
%87 = OpAccessChain %_ptr_StorageBuffer_float %sb %uint_0 %idx %uint_0
|
||||
OpStore %87 %88
|
||||
%90 = OpAccessChain %_ptr_StorageBuffer_int %sb %uint_0 %idx %uint_1
|
||||
OpStore %90 %70
|
||||
%92 = OpAccessChain %_ptr_StorageBuffer_uint %sb %uint_0 %idx %uint_2
|
||||
OpStore %92 %53
|
||||
%95 = OpAccessChain %_ptr_StorageBuffer_half %sb %uint_0 %idx %uint_3
|
||||
OpStore %95 %96
|
||||
%99 = OpAccessChain %_ptr_StorageBuffer_v2float %sb %uint_0 %idx %uint_4
|
||||
OpStore %99 %100
|
||||
%103 = OpAccessChain %_ptr_StorageBuffer_v2int %sb %uint_0 %idx %uint_5
|
||||
OpStore %103 %104
|
||||
%107 = OpAccessChain %_ptr_StorageBuffer_v2uint %sb %uint_0 %idx %uint_6
|
||||
OpStore %107 %108
|
||||
%111 = OpAccessChain %_ptr_StorageBuffer_v2half %sb %uint_0 %idx %uint_7
|
||||
OpStore %111 %112
|
||||
%114 = OpAccessChain %_ptr_StorageBuffer_v3float %sb %uint_0 %idx %uint_8
|
||||
OpStore %114 %115
|
||||
%118 = OpAccessChain %_ptr_StorageBuffer_v3int %sb %uint_0 %idx %uint_9
|
||||
OpStore %118 %119
|
||||
%122 = OpAccessChain %_ptr_StorageBuffer_v3uint %sb %uint_0 %idx %uint_10
|
||||
OpStore %122 %123
|
||||
%126 = OpAccessChain %_ptr_StorageBuffer_v3half %sb %uint_0 %idx %uint_11
|
||||
OpStore %126 %127
|
||||
%130 = OpAccessChain %_ptr_StorageBuffer_v4float %sb %uint_0 %idx %uint_12
|
||||
OpStore %130 %131
|
||||
%134 = OpAccessChain %_ptr_StorageBuffer_v4int %sb %uint_0 %idx %uint_13
|
||||
OpStore %134 %135
|
||||
%138 = OpAccessChain %_ptr_StorageBuffer_v4uint %sb %uint_0 %idx %uint_14
|
||||
OpStore %138 %139
|
||||
%142 = OpAccessChain %_ptr_StorageBuffer_v4half %sb %uint_0 %idx %uint_15
|
||||
%86 = OpCompositeExtract %uint %dest_1 0
|
||||
%88 = OpAccessChain %_ptr_StorageBuffer_v3float %sb %uint_0 %86 %uint_23 %54
|
||||
%89 = OpCompositeExtract %v3float %value_1 0
|
||||
OpStore %88 %89
|
||||
%90 = OpCompositeExtract %uint %dest_1 0
|
||||
%91 = OpAccessChain %_ptr_StorageBuffer_v3float %sb %uint_0 %90 %uint_23 %int_1
|
||||
%92 = OpCompositeExtract %v3float %value_1 1
|
||||
OpStore %91 %92
|
||||
%93 = OpCompositeExtract %uint %dest_1 0
|
||||
%94 = OpAccessChain %_ptr_StorageBuffer_v3float %sb %uint_0 %93 %uint_23 %int_2
|
||||
%95 = OpCompositeExtract %v3float %value_1 2
|
||||
OpStore %94 %95
|
||||
%96 = OpCompositeExtract %uint %dest_1 0
|
||||
%98 = OpAccessChain %_ptr_StorageBuffer_v3float %sb %uint_0 %96 %uint_23 %int_3
|
||||
%100 = OpCompositeExtract %v3float %value_1 3
|
||||
OpStore %98 %100
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%assign_and_preserve_padding_3_sb_arr_X_mat2x3_f16 = OpFunction %void None %101
|
||||
%dest_2 = OpFunctionParameter %_arr_uint_uint_1
|
||||
%value_2 = OpFunctionParameter %mat2v3half
|
||||
%105 = OpLabel
|
||||
%106 = OpCompositeExtract %uint %dest_2 0
|
||||
%109 = OpAccessChain %_ptr_StorageBuffer_v3half %sb %uint_0 %106 %uint_26 %54
|
||||
%110 = OpCompositeExtract %v3half %value_2 0
|
||||
OpStore %109 %110
|
||||
%111 = OpCompositeExtract %uint %dest_2 0
|
||||
%112 = OpAccessChain %_ptr_StorageBuffer_v3half %sb %uint_0 %111 %uint_26 %int_1
|
||||
%113 = OpCompositeExtract %v3half %value_2 1
|
||||
OpStore %112 %113
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%assign_and_preserve_padding_4_sb_arr_X_mat3x3_f16 = OpFunction %void None %114
|
||||
%dest_3 = OpFunctionParameter %_arr_uint_uint_1
|
||||
%value_3 = OpFunctionParameter %mat3v3half
|
||||
%118 = OpLabel
|
||||
%119 = OpCompositeExtract %uint %dest_3 0
|
||||
%121 = OpAccessChain %_ptr_StorageBuffer_v3half %sb %uint_0 %119 %uint_29 %54
|
||||
%122 = OpCompositeExtract %v3half %value_3 0
|
||||
OpStore %121 %122
|
||||
%123 = OpCompositeExtract %uint %dest_3 0
|
||||
%124 = OpAccessChain %_ptr_StorageBuffer_v3half %sb %uint_0 %123 %uint_29 %int_1
|
||||
%125 = OpCompositeExtract %v3half %value_3 1
|
||||
OpStore %124 %125
|
||||
%126 = OpCompositeExtract %uint %dest_3 0
|
||||
%127 = OpAccessChain %_ptr_StorageBuffer_v3half %sb %uint_0 %126 %uint_29 %int_2
|
||||
%128 = OpCompositeExtract %v3half %value_3 2
|
||||
OpStore %127 %128
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%assign_and_preserve_padding_5_sb_arr_X_mat4x3_f16 = OpFunction %void None %129
|
||||
%dest_4 = OpFunctionParameter %_arr_uint_uint_1
|
||||
%value_4 = OpFunctionParameter %mat4v3half
|
||||
%133 = OpLabel
|
||||
%134 = OpCompositeExtract %uint %dest_4 0
|
||||
%136 = OpAccessChain %_ptr_StorageBuffer_v3half %sb %uint_0 %134 %uint_32 %54
|
||||
%137 = OpCompositeExtract %v3half %value_4 0
|
||||
OpStore %136 %137
|
||||
%138 = OpCompositeExtract %uint %dest_4 0
|
||||
%139 = OpAccessChain %_ptr_StorageBuffer_v3half %sb %uint_0 %138 %uint_32 %int_1
|
||||
%140 = OpCompositeExtract %v3half %value_4 1
|
||||
OpStore %139 %140
|
||||
%141 = OpCompositeExtract %uint %dest_4 0
|
||||
%142 = OpAccessChain %_ptr_StorageBuffer_v3half %sb %uint_0 %141 %uint_32 %int_2
|
||||
%143 = OpCompositeExtract %v3half %value_4 2
|
||||
OpStore %142 %143
|
||||
%146 = OpAccessChain %_ptr_StorageBuffer_mat2v2float %sb %uint_0 %idx %uint_16
|
||||
OpStore %146 %147
|
||||
%150 = OpAccessChain %_ptr_StorageBuffer_mat2v3float %sb %uint_0 %idx %uint_17
|
||||
OpStore %150 %151
|
||||
%154 = OpAccessChain %_ptr_StorageBuffer_mat2v4float %sb %uint_0 %idx %uint_18
|
||||
OpStore %154 %155
|
||||
%158 = OpAccessChain %_ptr_StorageBuffer_mat3v2float %sb %uint_0 %idx %uint_19
|
||||
OpStore %158 %159
|
||||
%162 = OpAccessChain %_ptr_StorageBuffer_mat3v3float %sb %uint_0 %idx %uint_20
|
||||
OpStore %162 %163
|
||||
%166 = OpAccessChain %_ptr_StorageBuffer_mat3v4float %sb %uint_0 %idx %uint_21
|
||||
OpStore %166 %167
|
||||
%170 = OpAccessChain %_ptr_StorageBuffer_mat4v2float %sb %uint_0 %idx %uint_22
|
||||
OpStore %170 %171
|
||||
%174 = OpAccessChain %_ptr_StorageBuffer_mat4v3float %sb %uint_0 %idx %uint_23
|
||||
OpStore %174 %175
|
||||
%178 = OpAccessChain %_ptr_StorageBuffer_mat4v4float %sb %uint_0 %idx %uint_24
|
||||
OpStore %178 %179
|
||||
%182 = OpAccessChain %_ptr_StorageBuffer_mat2v2half %sb %uint_0 %idx %uint_25
|
||||
%144 = OpCompositeExtract %uint %dest_4 0
|
||||
%145 = OpAccessChain %_ptr_StorageBuffer_v3half %sb %uint_0 %144 %uint_32 %int_3
|
||||
%146 = OpCompositeExtract %v3half %value_4 3
|
||||
OpStore %145 %146
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%assign_and_preserve_padding_6_sb_arr_X_arr2_vec3_f32 = OpFunction %void None %147
|
||||
%dest_5 = OpFunctionParameter %_arr_uint_uint_1
|
||||
%value_5 = OpFunctionParameter %_arr_v3float_uint_2
|
||||
%151 = OpLabel
|
||||
%i = OpVariable %_ptr_Function_uint Function %59
|
||||
%var_for_index = OpVariable %_ptr_Function__arr_v3float_uint_2 Function %166
|
||||
OpStore %i %59
|
||||
OpBranch %154
|
||||
%154 = OpLabel
|
||||
OpLoopMerge %155 %156 None
|
||||
OpBranch %157
|
||||
%157 = OpLabel
|
||||
%159 = OpLoad %uint %i
|
||||
%160 = OpULessThan %bool %159 %uint_2
|
||||
%158 = OpLogicalNot %bool %160
|
||||
OpSelectionMerge %162 None
|
||||
OpBranchConditional %158 %163 %162
|
||||
%163 = OpLabel
|
||||
OpBranch %155
|
||||
%162 = OpLabel
|
||||
OpStore %var_for_index %value_5
|
||||
%167 = OpCompositeExtract %uint %dest_5 0
|
||||
%169 = OpLoad %uint %i
|
||||
%170 = OpAccessChain %_ptr_StorageBuffer_v3float %sb %uint_0 %167 %uint_34 %169
|
||||
%171 = OpLoad %uint %i
|
||||
%173 = OpAccessChain %_ptr_Function_v3float %var_for_index %171
|
||||
%174 = OpLoad %v3float %173
|
||||
OpStore %170 %174
|
||||
OpBranch %156
|
||||
%156 = OpLabel
|
||||
%175 = OpLoad %uint %i
|
||||
%176 = OpIAdd %uint %175 %uint_1
|
||||
OpStore %i %176
|
||||
OpBranch %154
|
||||
%155 = OpLabel
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%main_inner = OpFunction %void None %177
|
||||
%idx = OpFunctionParameter %uint
|
||||
%180 = OpLabel
|
||||
%182 = OpAccessChain %_ptr_StorageBuffer_float %sb %uint_0 %idx %uint_0
|
||||
OpStore %182 %183
|
||||
%186 = OpAccessChain %_ptr_StorageBuffer_mat2v3half %sb %uint_0 %idx %uint_26
|
||||
OpStore %186 %187
|
||||
%190 = OpAccessChain %_ptr_StorageBuffer_mat2v4half %sb %uint_0 %idx %uint_27
|
||||
OpStore %190 %191
|
||||
%194 = OpAccessChain %_ptr_StorageBuffer_mat3v2half %sb %uint_0 %idx %uint_28
|
||||
OpStore %194 %195
|
||||
%198 = OpAccessChain %_ptr_StorageBuffer_mat3v3half %sb %uint_0 %idx %uint_29
|
||||
OpStore %198 %199
|
||||
%202 = OpAccessChain %_ptr_StorageBuffer_mat3v4half %sb %uint_0 %idx %uint_30
|
||||
OpStore %202 %203
|
||||
%206 = OpAccessChain %_ptr_StorageBuffer_mat4v2half %sb %uint_0 %idx %uint_31
|
||||
OpStore %206 %207
|
||||
%210 = OpAccessChain %_ptr_StorageBuffer_mat4v3half %sb %uint_0 %idx %uint_32
|
||||
OpStore %210 %211
|
||||
%214 = OpAccessChain %_ptr_StorageBuffer_mat4v4half %sb %uint_0 %idx %uint_33
|
||||
OpStore %214 %215
|
||||
%217 = OpCompositeConstruct %_arr_uint_uint_1 %idx
|
||||
%216 = OpFunctionCall %void %assign_and_preserve_padding_sb_arr_X_arr2_vec3_f32 %217 %68
|
||||
%220 = OpAccessChain %_ptr_StorageBuffer__arr_mat4v2half_uint_2 %sb %uint_0 %idx %uint_35
|
||||
OpStore %220 %221
|
||||
%185 = OpAccessChain %_ptr_StorageBuffer_int %sb %uint_0 %idx %uint_1
|
||||
OpStore %185 %54
|
||||
%187 = OpAccessChain %_ptr_StorageBuffer_uint %sb %uint_0 %idx %uint_2
|
||||
OpStore %187 %59
|
||||
%189 = OpAccessChain %_ptr_StorageBuffer_half %sb %uint_0 %idx %uint_3
|
||||
OpStore %189 %190
|
||||
%193 = OpAccessChain %_ptr_StorageBuffer_v2float %sb %uint_0 %idx %uint_4
|
||||
OpStore %193 %194
|
||||
%197 = OpAccessChain %_ptr_StorageBuffer_v2int %sb %uint_0 %idx %uint_5
|
||||
OpStore %197 %198
|
||||
%201 = OpAccessChain %_ptr_StorageBuffer_v2uint %sb %uint_0 %idx %uint_6
|
||||
OpStore %201 %202
|
||||
%205 = OpAccessChain %_ptr_StorageBuffer_v2half %sb %uint_0 %idx %uint_7
|
||||
OpStore %205 %206
|
||||
%208 = OpAccessChain %_ptr_StorageBuffer_v3float %sb %uint_0 %idx %uint_8
|
||||
OpStore %208 %209
|
||||
%212 = OpAccessChain %_ptr_StorageBuffer_v3int %sb %uint_0 %idx %uint_9
|
||||
OpStore %212 %213
|
||||
%216 = OpAccessChain %_ptr_StorageBuffer_v3uint %sb %uint_0 %idx %uint_10
|
||||
OpStore %216 %217
|
||||
%219 = OpAccessChain %_ptr_StorageBuffer_v3half %sb %uint_0 %idx %uint_11
|
||||
OpStore %219 %220
|
||||
%223 = OpAccessChain %_ptr_StorageBuffer_v4float %sb %uint_0 %idx %uint_12
|
||||
OpStore %223 %224
|
||||
%227 = OpAccessChain %_ptr_StorageBuffer_v4int %sb %uint_0 %idx %uint_13
|
||||
OpStore %227 %228
|
||||
%231 = OpAccessChain %_ptr_StorageBuffer_v4uint %sb %uint_0 %idx %uint_14
|
||||
OpStore %231 %232
|
||||
%235 = OpAccessChain %_ptr_StorageBuffer_v4half %sb %uint_0 %idx %uint_15
|
||||
OpStore %235 %236
|
||||
%239 = OpAccessChain %_ptr_StorageBuffer_mat2v2float %sb %uint_0 %idx %uint_16
|
||||
OpStore %239 %240
|
||||
%242 = OpCompositeConstruct %_arr_uint_uint_1 %idx
|
||||
%241 = OpFunctionCall %void %assign_and_preserve_padding_sb_arr_X_mat2x3_f32 %242 %243
|
||||
%246 = OpAccessChain %_ptr_StorageBuffer_mat2v4float %sb %uint_0 %idx %uint_18
|
||||
OpStore %246 %247
|
||||
%250 = OpAccessChain %_ptr_StorageBuffer_mat3v2float %sb %uint_0 %idx %uint_19
|
||||
OpStore %250 %251
|
||||
%252 = OpFunctionCall %void %assign_and_preserve_padding_1_sb_arr_X_mat3x3_f32 %242 %253
|
||||
%256 = OpAccessChain %_ptr_StorageBuffer_mat3v4float %sb %uint_0 %idx %uint_21
|
||||
OpStore %256 %257
|
||||
%260 = OpAccessChain %_ptr_StorageBuffer_mat4v2float %sb %uint_0 %idx %uint_22
|
||||
OpStore %260 %261
|
||||
%262 = OpFunctionCall %void %assign_and_preserve_padding_2_sb_arr_X_mat4x3_f32 %242 %263
|
||||
%266 = OpAccessChain %_ptr_StorageBuffer_mat4v4float %sb %uint_0 %idx %uint_24
|
||||
OpStore %266 %267
|
||||
%270 = OpAccessChain %_ptr_StorageBuffer_mat2v2half %sb %uint_0 %idx %uint_25
|
||||
OpStore %270 %271
|
||||
%272 = OpFunctionCall %void %assign_and_preserve_padding_3_sb_arr_X_mat2x3_f16 %242 %273
|
||||
%276 = OpAccessChain %_ptr_StorageBuffer_mat2v4half %sb %uint_0 %idx %uint_27
|
||||
OpStore %276 %277
|
||||
%280 = OpAccessChain %_ptr_StorageBuffer_mat3v2half %sb %uint_0 %idx %uint_28
|
||||
OpStore %280 %281
|
||||
%282 = OpFunctionCall %void %assign_and_preserve_padding_4_sb_arr_X_mat3x3_f16 %242 %283
|
||||
%286 = OpAccessChain %_ptr_StorageBuffer_mat3v4half %sb %uint_0 %idx %uint_30
|
||||
OpStore %286 %287
|
||||
%290 = OpAccessChain %_ptr_StorageBuffer_mat4v2half %sb %uint_0 %idx %uint_31
|
||||
OpStore %290 %291
|
||||
%292 = OpFunctionCall %void %assign_and_preserve_padding_5_sb_arr_X_mat4x3_f16 %242 %293
|
||||
%296 = OpAccessChain %_ptr_StorageBuffer_mat4v4half %sb %uint_0 %idx %uint_33
|
||||
OpStore %296 %297
|
||||
%298 = OpFunctionCall %void %assign_and_preserve_padding_6_sb_arr_X_arr2_vec3_f32 %242 %166
|
||||
%301 = OpAccessChain %_ptr_StorageBuffer__arr_mat4v2half_uint_2 %sb %uint_0 %idx %uint_35
|
||||
OpStore %301 %302
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%main = OpFunction %void None %222
|
||||
%224 = OpLabel
|
||||
%226 = OpLoad %uint %idx_1
|
||||
%225 = OpFunctionCall %void %main_inner %226
|
||||
%main = OpFunction %void None %303
|
||||
%305 = OpLabel
|
||||
%307 = OpLoad %uint %idx_1
|
||||
%306 = OpFunctionCall %void %main_inner %307
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
|
||||
@@ -46,7 +46,25 @@ layout(binding = 0, std430) buffer sb_block_ssbo {
|
||||
S inner;
|
||||
} sb;
|
||||
|
||||
void assign_and_preserve_padding_sb_arr2_vec3_f32(vec3 value[2]) {
|
||||
void assign_and_preserve_padding_sb_mat2x3_f32(mat2x3 value) {
|
||||
sb.inner.mat2x3_f32[0] = value[0u];
|
||||
sb.inner.mat2x3_f32[1] = value[1u];
|
||||
}
|
||||
|
||||
void assign_and_preserve_padding_1_sb_mat3x3_f32(mat3 value) {
|
||||
sb.inner.mat3x3_f32[0] = value[0u];
|
||||
sb.inner.mat3x3_f32[1] = value[1u];
|
||||
sb.inner.mat3x3_f32[2] = value[2u];
|
||||
}
|
||||
|
||||
void assign_and_preserve_padding_2_sb_mat4x3_f32(mat4x3 value) {
|
||||
sb.inner.mat4x3_f32[0] = value[0u];
|
||||
sb.inner.mat4x3_f32[1] = value[1u];
|
||||
sb.inner.mat4x3_f32[2] = value[2u];
|
||||
sb.inner.mat4x3_f32[3] = value[3u];
|
||||
}
|
||||
|
||||
void assign_and_preserve_padding_3_sb_arr2_vec3_f32(vec3 value[2]) {
|
||||
{
|
||||
for(uint i = 0u; (i < 2u); i = (i + 1u)) {
|
||||
sb.inner.arr2_vec3_f32[i] = value[i];
|
||||
@@ -68,16 +86,16 @@ void tint_symbol() {
|
||||
sb.inner.vec4_i32 = ivec4(0);
|
||||
sb.inner.vec4_u32 = uvec4(0u);
|
||||
sb.inner.mat2x2_f32 = mat2(vec2(0.0f), vec2(0.0f));
|
||||
sb.inner.mat2x3_f32 = mat2x3(vec3(0.0f), vec3(0.0f));
|
||||
assign_and_preserve_padding_sb_mat2x3_f32(mat2x3(vec3(0.0f), vec3(0.0f)));
|
||||
sb.inner.mat2x4_f32 = mat2x4(vec4(0.0f), vec4(0.0f));
|
||||
sb.inner.mat3x2_f32 = mat3x2(vec2(0.0f), vec2(0.0f), vec2(0.0f));
|
||||
sb.inner.mat3x3_f32 = mat3(vec3(0.0f), vec3(0.0f), vec3(0.0f));
|
||||
assign_and_preserve_padding_1_sb_mat3x3_f32(mat3(vec3(0.0f), vec3(0.0f), vec3(0.0f)));
|
||||
sb.inner.mat3x4_f32 = mat3x4(vec4(0.0f), vec4(0.0f), vec4(0.0f));
|
||||
sb.inner.mat4x2_f32 = mat4x2(vec2(0.0f), vec2(0.0f), vec2(0.0f), vec2(0.0f));
|
||||
sb.inner.mat4x3_f32 = mat4x3(vec3(0.0f), vec3(0.0f), vec3(0.0f), vec3(0.0f));
|
||||
assign_and_preserve_padding_2_sb_mat4x3_f32(mat4x3(vec3(0.0f), vec3(0.0f), vec3(0.0f), vec3(0.0f)));
|
||||
sb.inner.mat4x4_f32 = mat4(vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f));
|
||||
vec3 tint_symbol_1[2] = vec3[2](vec3(0.0f), vec3(0.0f));
|
||||
assign_and_preserve_padding_sb_arr2_vec3_f32(tint_symbol_1);
|
||||
assign_and_preserve_padding_3_sb_arr2_vec3_f32(tint_symbol_1);
|
||||
Inner tint_symbol_2 = Inner(0, 0.0f);
|
||||
sb.inner.struct_inner = tint_symbol_2;
|
||||
Inner tint_symbol_3[4] = Inner[4](Inner(0, 0.0f), Inner(0, 0.0f), Inner(0, 0.0f), Inner(0, 0.0f));
|
||||
|
||||
@@ -53,7 +53,25 @@ struct S {
|
||||
/* 0x0248 */ tint_array<int8_t, 8> tint_pad_6;
|
||||
};
|
||||
|
||||
void assign_and_preserve_padding(device tint_array<float3, 2>* const dest, tint_array<float3, 2> value) {
|
||||
void assign_and_preserve_padding(device float2x3* const dest, float2x3 value) {
|
||||
(*(dest))[0u] = value[0u];
|
||||
(*(dest))[1u] = value[1u];
|
||||
}
|
||||
|
||||
void assign_and_preserve_padding_1(device float3x3* const dest, float3x3 value) {
|
||||
(*(dest))[0u] = value[0u];
|
||||
(*(dest))[1u] = value[1u];
|
||||
(*(dest))[2u] = value[2u];
|
||||
}
|
||||
|
||||
void assign_and_preserve_padding_2(device float4x3* const dest, float4x3 value) {
|
||||
(*(dest))[0u] = value[0u];
|
||||
(*(dest))[1u] = value[1u];
|
||||
(*(dest))[2u] = value[2u];
|
||||
(*(dest))[3u] = value[3u];
|
||||
}
|
||||
|
||||
void assign_and_preserve_padding_3(device tint_array<float3, 2>* const dest, tint_array<float3, 2> value) {
|
||||
for(uint i = 0u; (i < 2u); i = (i + 1u)) {
|
||||
(*(dest))[i] = value[i];
|
||||
}
|
||||
@@ -73,16 +91,16 @@ kernel void tint_symbol(device S* tint_symbol_4 [[buffer(0)]]) {
|
||||
(*(tint_symbol_4)).vec4_i32 = int4(0);
|
||||
(*(tint_symbol_4)).vec4_u32 = uint4(0u);
|
||||
(*(tint_symbol_4)).mat2x2_f32 = float2x2(float2(0.0f), float2(0.0f));
|
||||
(*(tint_symbol_4)).mat2x3_f32 = float2x3(float3(0.0f), float3(0.0f));
|
||||
assign_and_preserve_padding(&((*(tint_symbol_4)).mat2x3_f32), float2x3(float3(0.0f), float3(0.0f)));
|
||||
(*(tint_symbol_4)).mat2x4_f32 = float2x4(float4(0.0f), float4(0.0f));
|
||||
(*(tint_symbol_4)).mat3x2_f32 = float3x2(float2(0.0f), float2(0.0f), float2(0.0f));
|
||||
(*(tint_symbol_4)).mat3x3_f32 = float3x3(float3(0.0f), float3(0.0f), float3(0.0f));
|
||||
assign_and_preserve_padding_1(&((*(tint_symbol_4)).mat3x3_f32), float3x3(float3(0.0f), float3(0.0f), float3(0.0f)));
|
||||
(*(tint_symbol_4)).mat3x4_f32 = float3x4(float4(0.0f), float4(0.0f), float4(0.0f));
|
||||
(*(tint_symbol_4)).mat4x2_f32 = float4x2(float2(0.0f), float2(0.0f), float2(0.0f), float2(0.0f));
|
||||
(*(tint_symbol_4)).mat4x3_f32 = float4x3(float3(0.0f), float3(0.0f), float3(0.0f), float3(0.0f));
|
||||
assign_and_preserve_padding_2(&((*(tint_symbol_4)).mat4x3_f32), float4x3(float3(0.0f), float3(0.0f), float3(0.0f), float3(0.0f)));
|
||||
(*(tint_symbol_4)).mat4x4_f32 = float4x4(float4(0.0f), float4(0.0f), float4(0.0f), float4(0.0f));
|
||||
tint_array<float3, 2> const tint_symbol_1 = tint_array<float3, 2>{};
|
||||
assign_and_preserve_padding(&((*(tint_symbol_4)).arr2_vec3_f32), tint_symbol_1);
|
||||
assign_and_preserve_padding_3(&((*(tint_symbol_4)).arr2_vec3_f32), tint_symbol_1);
|
||||
Inner const tint_symbol_2 = Inner{};
|
||||
(*(tint_symbol_4)).struct_inner = tint_symbol_2;
|
||||
tint_array<Inner, 4> const tint_symbol_3 = tint_array<Inner, 4>{};
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
; SPIR-V
|
||||
; Version: 1.3
|
||||
; Generator: Google Tint Compiler; 0
|
||||
; Bound: 154
|
||||
; Bound: 184
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
OpMemoryModel Logical GLSL450
|
||||
@@ -38,8 +38,14 @@
|
||||
OpMemberName %Inner 1 "scalar_f32"
|
||||
OpMemberName %S 23 "array_struct_inner"
|
||||
OpName %sb "sb"
|
||||
OpName %assign_and_preserve_padding_sb_arr2_vec3_f32 "assign_and_preserve_padding_sb_arr2_vec3_f32"
|
||||
OpName %assign_and_preserve_padding_sb_mat2x3_f32 "assign_and_preserve_padding_sb_mat2x3_f32"
|
||||
OpName %value "value"
|
||||
OpName %assign_and_preserve_padding_1_sb_mat3x3_f32 "assign_and_preserve_padding_1_sb_mat3x3_f32"
|
||||
OpName %value_0 "value"
|
||||
OpName %assign_and_preserve_padding_2_sb_mat4x3_f32 "assign_and_preserve_padding_2_sb_mat4x3_f32"
|
||||
OpName %value_1 "value"
|
||||
OpName %assign_and_preserve_padding_3_sb_arr2_vec3_f32 "assign_and_preserve_padding_3_sb_arr2_vec3_f32"
|
||||
OpName %value_2 "value"
|
||||
OpName %i "i"
|
||||
OpName %var_for_index "var_for_index"
|
||||
OpName %main "main"
|
||||
@@ -124,164 +130,206 @@
|
||||
%_ptr_StorageBuffer_sb_block = OpTypePointer StorageBuffer %sb_block
|
||||
%sb = OpVariable %_ptr_StorageBuffer_sb_block StorageBuffer
|
||||
%void = OpTypeVoid
|
||||
%31 = OpTypeFunction %void %_arr_v3float_uint_2
|
||||
%36 = OpConstantNull %uint
|
||||
%31 = OpTypeFunction %void %mat2v3float
|
||||
%uint_0 = OpConstant %uint 0
|
||||
%uint_13 = OpConstant %uint 13
|
||||
%38 = OpConstantNull %int
|
||||
%_ptr_StorageBuffer_v3float = OpTypePointer StorageBuffer %v3float
|
||||
%41 = OpConstantNull %uint
|
||||
%int_1 = OpConstant %int 1
|
||||
%uint_1 = OpConstant %uint 1
|
||||
%47 = OpTypeFunction %void %mat3v3float
|
||||
%uint_16 = OpConstant %uint 16
|
||||
%int_2 = OpConstant %int 2
|
||||
%59 = OpTypeFunction %void %mat4v3float
|
||||
%uint_19 = OpConstant %uint 19
|
||||
%int_3 = OpConstant %int 3
|
||||
%uint_3 = OpConstant %uint 3
|
||||
%74 = OpTypeFunction %void %_arr_v3float_uint_2
|
||||
%_ptr_Function_uint = OpTypePointer Function %uint
|
||||
%bool = OpTypeBool
|
||||
%_ptr_Function__arr_v3float_uint_2 = OpTypePointer Function %_arr_v3float_uint_2
|
||||
%51 = OpConstantNull %_arr_v3float_uint_2
|
||||
%uint_0 = OpConstant %uint 0
|
||||
%92 = OpConstantNull %_arr_v3float_uint_2
|
||||
%uint_21 = OpConstant %uint 21
|
||||
%_ptr_StorageBuffer_v3float = OpTypePointer StorageBuffer %v3float
|
||||
%_ptr_Function_v3float = OpTypePointer Function %v3float
|
||||
%uint_1 = OpConstant %uint 1
|
||||
%64 = OpTypeFunction %void
|
||||
%102 = OpTypeFunction %void
|
||||
%_ptr_StorageBuffer_float = OpTypePointer StorageBuffer %float
|
||||
%69 = OpConstantNull %float
|
||||
%107 = OpConstantNull %float
|
||||
%_ptr_StorageBuffer_int = OpTypePointer StorageBuffer %int
|
||||
%72 = OpConstantNull %int
|
||||
%_ptr_StorageBuffer_uint = OpTypePointer StorageBuffer %uint
|
||||
%uint_3 = OpConstant %uint 3
|
||||
%_ptr_StorageBuffer_v2float = OpTypePointer StorageBuffer %v2float
|
||||
%78 = OpConstantNull %v2float
|
||||
%114 = OpConstantNull %v2float
|
||||
%_ptr_StorageBuffer_v2int = OpTypePointer StorageBuffer %v2int
|
||||
%81 = OpConstantNull %v2int
|
||||
%117 = OpConstantNull %v2int
|
||||
%uint_5 = OpConstant %uint 5
|
||||
%_ptr_StorageBuffer_v2uint = OpTypePointer StorageBuffer %v2uint
|
||||
%85 = OpConstantNull %v2uint
|
||||
%121 = OpConstantNull %v2uint
|
||||
%uint_6 = OpConstant %uint 6
|
||||
%88 = OpConstantNull %v3float
|
||||
%124 = OpConstantNull %v3float
|
||||
%uint_7 = OpConstant %uint 7
|
||||
%_ptr_StorageBuffer_v3int = OpTypePointer StorageBuffer %v3int
|
||||
%92 = OpConstantNull %v3int
|
||||
%128 = OpConstantNull %v3int
|
||||
%uint_8 = OpConstant %uint 8
|
||||
%_ptr_StorageBuffer_v3uint = OpTypePointer StorageBuffer %v3uint
|
||||
%96 = OpConstantNull %v3uint
|
||||
%132 = OpConstantNull %v3uint
|
||||
%uint_9 = OpConstant %uint 9
|
||||
%_ptr_StorageBuffer_v4float = OpTypePointer StorageBuffer %v4float
|
||||
%100 = OpConstantNull %v4float
|
||||
%136 = OpConstantNull %v4float
|
||||
%uint_10 = OpConstant %uint 10
|
||||
%_ptr_StorageBuffer_v4int = OpTypePointer StorageBuffer %v4int
|
||||
%104 = OpConstantNull %v4int
|
||||
%140 = OpConstantNull %v4int
|
||||
%uint_11 = OpConstant %uint 11
|
||||
%_ptr_StorageBuffer_v4uint = OpTypePointer StorageBuffer %v4uint
|
||||
%108 = OpConstantNull %v4uint
|
||||
%144 = OpConstantNull %v4uint
|
||||
%uint_12 = OpConstant %uint 12
|
||||
%_ptr_StorageBuffer_mat2v2float = OpTypePointer StorageBuffer %mat2v2float
|
||||
%112 = OpConstantNull %mat2v2float
|
||||
%uint_13 = OpConstant %uint 13
|
||||
%_ptr_StorageBuffer_mat2v3float = OpTypePointer StorageBuffer %mat2v3float
|
||||
%116 = OpConstantNull %mat2v3float
|
||||
%148 = OpConstantNull %mat2v2float
|
||||
%150 = OpConstantNull %mat2v3float
|
||||
%uint_14 = OpConstant %uint 14
|
||||
%_ptr_StorageBuffer_mat2v4float = OpTypePointer StorageBuffer %mat2v4float
|
||||
%120 = OpConstantNull %mat2v4float
|
||||
%154 = OpConstantNull %mat2v4float
|
||||
%uint_15 = OpConstant %uint 15
|
||||
%_ptr_StorageBuffer_mat3v2float = OpTypePointer StorageBuffer %mat3v2float
|
||||
%124 = OpConstantNull %mat3v2float
|
||||
%uint_16 = OpConstant %uint 16
|
||||
%_ptr_StorageBuffer_mat3v3float = OpTypePointer StorageBuffer %mat3v3float
|
||||
%128 = OpConstantNull %mat3v3float
|
||||
%158 = OpConstantNull %mat3v2float
|
||||
%160 = OpConstantNull %mat3v3float
|
||||
%uint_17 = OpConstant %uint 17
|
||||
%_ptr_StorageBuffer_mat3v4float = OpTypePointer StorageBuffer %mat3v4float
|
||||
%132 = OpConstantNull %mat3v4float
|
||||
%164 = OpConstantNull %mat3v4float
|
||||
%uint_18 = OpConstant %uint 18
|
||||
%_ptr_StorageBuffer_mat4v2float = OpTypePointer StorageBuffer %mat4v2float
|
||||
%136 = OpConstantNull %mat4v2float
|
||||
%uint_19 = OpConstant %uint 19
|
||||
%_ptr_StorageBuffer_mat4v3float = OpTypePointer StorageBuffer %mat4v3float
|
||||
%140 = OpConstantNull %mat4v3float
|
||||
%168 = OpConstantNull %mat4v2float
|
||||
%170 = OpConstantNull %mat4v3float
|
||||
%uint_20 = OpConstant %uint 20
|
||||
%_ptr_StorageBuffer_mat4v4float = OpTypePointer StorageBuffer %mat4v4float
|
||||
%144 = OpConstantNull %mat4v4float
|
||||
%174 = OpConstantNull %mat4v4float
|
||||
%uint_22 = OpConstant %uint 22
|
||||
%_ptr_StorageBuffer_Inner = OpTypePointer StorageBuffer %Inner
|
||||
%149 = OpConstantNull %Inner
|
||||
%179 = OpConstantNull %Inner
|
||||
%uint_23 = OpConstant %uint 23
|
||||
%_ptr_StorageBuffer__arr_Inner_uint_4 = OpTypePointer StorageBuffer %_arr_Inner_uint_4
|
||||
%153 = OpConstantNull %_arr_Inner_uint_4
|
||||
%assign_and_preserve_padding_sb_arr2_vec3_f32 = OpFunction %void None %31
|
||||
%value = OpFunctionParameter %_arr_v3float_uint_2
|
||||
%183 = OpConstantNull %_arr_Inner_uint_4
|
||||
%assign_and_preserve_padding_sb_mat2x3_f32 = OpFunction %void None %31
|
||||
%value = OpFunctionParameter %mat2v3float
|
||||
%35 = OpLabel
|
||||
%i = OpVariable %_ptr_Function_uint Function %36
|
||||
%var_for_index = OpVariable %_ptr_Function__arr_v3float_uint_2 Function %51
|
||||
OpStore %i %36
|
||||
OpBranch %39
|
||||
%39 = OpLabel
|
||||
OpLoopMerge %40 %41 None
|
||||
OpBranch %42
|
||||
%42 = OpLabel
|
||||
%44 = OpLoad %uint %i
|
||||
%45 = OpULessThan %bool %44 %uint_2
|
||||
%43 = OpLogicalNot %bool %45
|
||||
OpSelectionMerge %47 None
|
||||
OpBranchConditional %43 %48 %47
|
||||
%48 = OpLabel
|
||||
OpBranch %40
|
||||
%47 = OpLabel
|
||||
OpStore %var_for_index %value
|
||||
%54 = OpLoad %uint %i
|
||||
%56 = OpAccessChain %_ptr_StorageBuffer_v3float %sb %uint_0 %uint_21 %54
|
||||
%57 = OpLoad %uint %i
|
||||
%59 = OpAccessChain %_ptr_Function_v3float %var_for_index %57
|
||||
%60 = OpLoad %v3float %59
|
||||
OpStore %56 %60
|
||||
OpBranch %41
|
||||
%41 = OpLabel
|
||||
%61 = OpLoad %uint %i
|
||||
%63 = OpIAdd %uint %61 %uint_1
|
||||
OpStore %i %63
|
||||
OpBranch %39
|
||||
%40 = OpLabel
|
||||
%40 = OpAccessChain %_ptr_StorageBuffer_v3float %sb %uint_0 %uint_13 %38
|
||||
%42 = OpCompositeExtract %v3float %value 0
|
||||
OpStore %40 %42
|
||||
%44 = OpAccessChain %_ptr_StorageBuffer_v3float %sb %uint_0 %uint_13 %int_1
|
||||
%46 = OpCompositeExtract %v3float %value 1
|
||||
OpStore %44 %46
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%main = OpFunction %void None %64
|
||||
%66 = OpLabel
|
||||
%68 = OpAccessChain %_ptr_StorageBuffer_float %sb %uint_0 %uint_0
|
||||
%assign_and_preserve_padding_1_sb_mat3x3_f32 = OpFunction %void None %47
|
||||
%value_0 = OpFunctionParameter %mat3v3float
|
||||
%50 = OpLabel
|
||||
%52 = OpAccessChain %_ptr_StorageBuffer_v3float %sb %uint_0 %uint_16 %38
|
||||
%53 = OpCompositeExtract %v3float %value_0 0
|
||||
OpStore %52 %53
|
||||
%54 = OpAccessChain %_ptr_StorageBuffer_v3float %sb %uint_0 %uint_16 %int_1
|
||||
%55 = OpCompositeExtract %v3float %value_0 1
|
||||
OpStore %54 %55
|
||||
%57 = OpAccessChain %_ptr_StorageBuffer_v3float %sb %uint_0 %uint_16 %int_2
|
||||
%58 = OpCompositeExtract %v3float %value_0 2
|
||||
OpStore %57 %58
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%assign_and_preserve_padding_2_sb_mat4x3_f32 = OpFunction %void None %59
|
||||
%value_1 = OpFunctionParameter %mat4v3float
|
||||
%62 = OpLabel
|
||||
%64 = OpAccessChain %_ptr_StorageBuffer_v3float %sb %uint_0 %uint_19 %38
|
||||
%65 = OpCompositeExtract %v3float %value_1 0
|
||||
OpStore %64 %65
|
||||
%66 = OpAccessChain %_ptr_StorageBuffer_v3float %sb %uint_0 %uint_19 %int_1
|
||||
%67 = OpCompositeExtract %v3float %value_1 1
|
||||
OpStore %66 %67
|
||||
%68 = OpAccessChain %_ptr_StorageBuffer_v3float %sb %uint_0 %uint_19 %int_2
|
||||
%69 = OpCompositeExtract %v3float %value_1 2
|
||||
OpStore %68 %69
|
||||
%71 = OpAccessChain %_ptr_StorageBuffer_int %sb %uint_0 %uint_1
|
||||
OpStore %71 %72
|
||||
%74 = OpAccessChain %_ptr_StorageBuffer_uint %sb %uint_0 %uint_2
|
||||
OpStore %74 %36
|
||||
%77 = OpAccessChain %_ptr_StorageBuffer_v2float %sb %uint_0 %uint_3
|
||||
OpStore %77 %78
|
||||
%80 = OpAccessChain %_ptr_StorageBuffer_v2int %sb %uint_0 %uint_4
|
||||
OpStore %80 %81
|
||||
%84 = OpAccessChain %_ptr_StorageBuffer_v2uint %sb %uint_0 %uint_5
|
||||
OpStore %84 %85
|
||||
%87 = OpAccessChain %_ptr_StorageBuffer_v3float %sb %uint_0 %uint_6
|
||||
OpStore %87 %88
|
||||
%91 = OpAccessChain %_ptr_StorageBuffer_v3int %sb %uint_0 %uint_7
|
||||
OpStore %91 %92
|
||||
%95 = OpAccessChain %_ptr_StorageBuffer_v3uint %sb %uint_0 %uint_8
|
||||
OpStore %95 %96
|
||||
%99 = OpAccessChain %_ptr_StorageBuffer_v4float %sb %uint_0 %uint_9
|
||||
OpStore %99 %100
|
||||
%103 = OpAccessChain %_ptr_StorageBuffer_v4int %sb %uint_0 %uint_10
|
||||
OpStore %103 %104
|
||||
%107 = OpAccessChain %_ptr_StorageBuffer_v4uint %sb %uint_0 %uint_11
|
||||
OpStore %107 %108
|
||||
%111 = OpAccessChain %_ptr_StorageBuffer_mat2v2float %sb %uint_0 %uint_12
|
||||
OpStore %111 %112
|
||||
%115 = OpAccessChain %_ptr_StorageBuffer_mat2v3float %sb %uint_0 %uint_13
|
||||
OpStore %115 %116
|
||||
%119 = OpAccessChain %_ptr_StorageBuffer_mat2v4float %sb %uint_0 %uint_14
|
||||
OpStore %119 %120
|
||||
%123 = OpAccessChain %_ptr_StorageBuffer_mat3v2float %sb %uint_0 %uint_15
|
||||
OpStore %123 %124
|
||||
%127 = OpAccessChain %_ptr_StorageBuffer_mat3v3float %sb %uint_0 %uint_16
|
||||
OpStore %127 %128
|
||||
%131 = OpAccessChain %_ptr_StorageBuffer_mat3v4float %sb %uint_0 %uint_17
|
||||
OpStore %131 %132
|
||||
%135 = OpAccessChain %_ptr_StorageBuffer_mat4v2float %sb %uint_0 %uint_18
|
||||
OpStore %135 %136
|
||||
%139 = OpAccessChain %_ptr_StorageBuffer_mat4v3float %sb %uint_0 %uint_19
|
||||
OpStore %139 %140
|
||||
%143 = OpAccessChain %_ptr_StorageBuffer_mat4v4float %sb %uint_0 %uint_20
|
||||
OpStore %143 %144
|
||||
%145 = OpFunctionCall %void %assign_and_preserve_padding_sb_arr2_vec3_f32 %51
|
||||
%148 = OpAccessChain %_ptr_StorageBuffer_Inner %sb %uint_0 %uint_22
|
||||
OpStore %148 %149
|
||||
%152 = OpAccessChain %_ptr_StorageBuffer__arr_Inner_uint_4 %sb %uint_0 %uint_23
|
||||
OpStore %152 %153
|
||||
%71 = OpAccessChain %_ptr_StorageBuffer_v3float %sb %uint_0 %uint_19 %int_3
|
||||
%73 = OpCompositeExtract %v3float %value_1 3
|
||||
OpStore %71 %73
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%assign_and_preserve_padding_3_sb_arr2_vec3_f32 = OpFunction %void None %74
|
||||
%value_2 = OpFunctionParameter %_arr_v3float_uint_2
|
||||
%77 = OpLabel
|
||||
%i = OpVariable %_ptr_Function_uint Function %41
|
||||
%var_for_index = OpVariable %_ptr_Function__arr_v3float_uint_2 Function %92
|
||||
OpStore %i %41
|
||||
OpBranch %80
|
||||
%80 = OpLabel
|
||||
OpLoopMerge %81 %82 None
|
||||
OpBranch %83
|
||||
%83 = OpLabel
|
||||
%85 = OpLoad %uint %i
|
||||
%86 = OpULessThan %bool %85 %uint_2
|
||||
%84 = OpLogicalNot %bool %86
|
||||
OpSelectionMerge %88 None
|
||||
OpBranchConditional %84 %89 %88
|
||||
%89 = OpLabel
|
||||
OpBranch %81
|
||||
%88 = OpLabel
|
||||
OpStore %var_for_index %value_2
|
||||
%94 = OpLoad %uint %i
|
||||
%95 = OpAccessChain %_ptr_StorageBuffer_v3float %sb %uint_0 %uint_21 %94
|
||||
%96 = OpLoad %uint %i
|
||||
%98 = OpAccessChain %_ptr_Function_v3float %var_for_index %96
|
||||
%99 = OpLoad %v3float %98
|
||||
OpStore %95 %99
|
||||
OpBranch %82
|
||||
%82 = OpLabel
|
||||
%100 = OpLoad %uint %i
|
||||
%101 = OpIAdd %uint %100 %uint_1
|
||||
OpStore %i %101
|
||||
OpBranch %80
|
||||
%81 = OpLabel
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%main = OpFunction %void None %102
|
||||
%104 = OpLabel
|
||||
%106 = OpAccessChain %_ptr_StorageBuffer_float %sb %uint_0 %uint_0
|
||||
OpStore %106 %107
|
||||
%109 = OpAccessChain %_ptr_StorageBuffer_int %sb %uint_0 %uint_1
|
||||
OpStore %109 %38
|
||||
%111 = OpAccessChain %_ptr_StorageBuffer_uint %sb %uint_0 %uint_2
|
||||
OpStore %111 %41
|
||||
%113 = OpAccessChain %_ptr_StorageBuffer_v2float %sb %uint_0 %uint_3
|
||||
OpStore %113 %114
|
||||
%116 = OpAccessChain %_ptr_StorageBuffer_v2int %sb %uint_0 %uint_4
|
||||
OpStore %116 %117
|
||||
%120 = OpAccessChain %_ptr_StorageBuffer_v2uint %sb %uint_0 %uint_5
|
||||
OpStore %120 %121
|
||||
%123 = OpAccessChain %_ptr_StorageBuffer_v3float %sb %uint_0 %uint_6
|
||||
OpStore %123 %124
|
||||
%127 = OpAccessChain %_ptr_StorageBuffer_v3int %sb %uint_0 %uint_7
|
||||
OpStore %127 %128
|
||||
%131 = OpAccessChain %_ptr_StorageBuffer_v3uint %sb %uint_0 %uint_8
|
||||
OpStore %131 %132
|
||||
%135 = OpAccessChain %_ptr_StorageBuffer_v4float %sb %uint_0 %uint_9
|
||||
OpStore %135 %136
|
||||
%139 = OpAccessChain %_ptr_StorageBuffer_v4int %sb %uint_0 %uint_10
|
||||
OpStore %139 %140
|
||||
%143 = OpAccessChain %_ptr_StorageBuffer_v4uint %sb %uint_0 %uint_11
|
||||
OpStore %143 %144
|
||||
%147 = OpAccessChain %_ptr_StorageBuffer_mat2v2float %sb %uint_0 %uint_12
|
||||
OpStore %147 %148
|
||||
%149 = OpFunctionCall %void %assign_and_preserve_padding_sb_mat2x3_f32 %150
|
||||
%153 = OpAccessChain %_ptr_StorageBuffer_mat2v4float %sb %uint_0 %uint_14
|
||||
OpStore %153 %154
|
||||
%157 = OpAccessChain %_ptr_StorageBuffer_mat3v2float %sb %uint_0 %uint_15
|
||||
OpStore %157 %158
|
||||
%159 = OpFunctionCall %void %assign_and_preserve_padding_1_sb_mat3x3_f32 %160
|
||||
%163 = OpAccessChain %_ptr_StorageBuffer_mat3v4float %sb %uint_0 %uint_17
|
||||
OpStore %163 %164
|
||||
%167 = OpAccessChain %_ptr_StorageBuffer_mat4v2float %sb %uint_0 %uint_18
|
||||
OpStore %167 %168
|
||||
%169 = OpFunctionCall %void %assign_and_preserve_padding_2_sb_mat4x3_f32 %170
|
||||
%173 = OpAccessChain %_ptr_StorageBuffer_mat4v4float %sb %uint_0 %uint_20
|
||||
OpStore %173 %174
|
||||
%175 = OpFunctionCall %void %assign_and_preserve_padding_3_sb_arr2_vec3_f32 %92
|
||||
%178 = OpAccessChain %_ptr_StorageBuffer_Inner %sb %uint_0 %uint_22
|
||||
OpStore %178 %179
|
||||
%182 = OpAccessChain %_ptr_StorageBuffer__arr_Inner_uint_4 %sb %uint_0 %uint_23
|
||||
OpStore %182 %183
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
|
||||
@@ -66,7 +66,43 @@ layout(binding = 0, std430) buffer sb_block_ssbo {
|
||||
S inner;
|
||||
} sb;
|
||||
|
||||
void assign_and_preserve_padding_sb_arr2_vec3_f32(vec3 value[2]) {
|
||||
void assign_and_preserve_padding_sb_mat2x3_f32(mat2x3 value) {
|
||||
sb.inner.mat2x3_f32[0] = value[0u];
|
||||
sb.inner.mat2x3_f32[1] = value[1u];
|
||||
}
|
||||
|
||||
void assign_and_preserve_padding_1_sb_mat3x3_f32(mat3 value) {
|
||||
sb.inner.mat3x3_f32[0] = value[0u];
|
||||
sb.inner.mat3x3_f32[1] = value[1u];
|
||||
sb.inner.mat3x3_f32[2] = value[2u];
|
||||
}
|
||||
|
||||
void assign_and_preserve_padding_2_sb_mat4x3_f32(mat4x3 value) {
|
||||
sb.inner.mat4x3_f32[0] = value[0u];
|
||||
sb.inner.mat4x3_f32[1] = value[1u];
|
||||
sb.inner.mat4x3_f32[2] = value[2u];
|
||||
sb.inner.mat4x3_f32[3] = value[3u];
|
||||
}
|
||||
|
||||
void assign_and_preserve_padding_3_sb_mat2x3_f16(f16mat2x3 value) {
|
||||
sb.inner.mat2x3_f16[0] = value[0u];
|
||||
sb.inner.mat2x3_f16[1] = value[1u];
|
||||
}
|
||||
|
||||
void assign_and_preserve_padding_4_sb_mat3x3_f16(f16mat3 value) {
|
||||
sb.inner.mat3x3_f16[0] = value[0u];
|
||||
sb.inner.mat3x3_f16[1] = value[1u];
|
||||
sb.inner.mat3x3_f16[2] = value[2u];
|
||||
}
|
||||
|
||||
void assign_and_preserve_padding_5_sb_mat4x3_f16(f16mat4x3 value) {
|
||||
sb.inner.mat4x3_f16[0] = value[0u];
|
||||
sb.inner.mat4x3_f16[1] = value[1u];
|
||||
sb.inner.mat4x3_f16[2] = value[2u];
|
||||
sb.inner.mat4x3_f16[3] = value[3u];
|
||||
}
|
||||
|
||||
void assign_and_preserve_padding_6_sb_arr2_vec3_f32(vec3 value[2]) {
|
||||
{
|
||||
for(uint i = 0u; (i < 2u); i = (i + 1u)) {
|
||||
sb.inner.arr2_vec3_f32[i] = value[i];
|
||||
@@ -74,23 +110,23 @@ void assign_and_preserve_padding_sb_arr2_vec3_f32(vec3 value[2]) {
|
||||
}
|
||||
}
|
||||
|
||||
void assign_and_preserve_padding_1_sb_struct_inner(Inner value) {
|
||||
void assign_and_preserve_padding_7_sb_struct_inner(Inner value) {
|
||||
sb.inner.struct_inner.scalar_i32 = value.scalar_i32;
|
||||
sb.inner.struct_inner.scalar_f32 = value.scalar_f32;
|
||||
sb.inner.struct_inner.scalar_f16 = value.scalar_f16;
|
||||
}
|
||||
|
||||
void assign_and_preserve_padding_1_sb_array_struct_inner_X(uint dest[1], Inner value) {
|
||||
void assign_and_preserve_padding_7_sb_array_struct_inner_X(uint dest[1], Inner value) {
|
||||
sb.inner.array_struct_inner[dest[0]].scalar_i32 = value.scalar_i32;
|
||||
sb.inner.array_struct_inner[dest[0]].scalar_f32 = value.scalar_f32;
|
||||
sb.inner.array_struct_inner[dest[0]].scalar_f16 = value.scalar_f16;
|
||||
}
|
||||
|
||||
void assign_and_preserve_padding_2_sb_array_struct_inner(Inner value[4]) {
|
||||
void assign_and_preserve_padding_8_sb_array_struct_inner(Inner value[4]) {
|
||||
{
|
||||
for(uint i = 0u; (i < 4u); i = (i + 1u)) {
|
||||
uint tint_symbol_1[1] = uint[1](i);
|
||||
assign_and_preserve_padding_1_sb_array_struct_inner_X(tint_symbol_1, value[i]);
|
||||
assign_and_preserve_padding_7_sb_array_struct_inner_X(tint_symbol_1, value[i]);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -113,31 +149,31 @@ void tint_symbol() {
|
||||
sb.inner.vec4_u32 = uvec4(0u);
|
||||
sb.inner.vec4_f16 = f16vec4(0.0hf);
|
||||
sb.inner.mat2x2_f32 = mat2(vec2(0.0f), vec2(0.0f));
|
||||
sb.inner.mat2x3_f32 = mat2x3(vec3(0.0f), vec3(0.0f));
|
||||
assign_and_preserve_padding_sb_mat2x3_f32(mat2x3(vec3(0.0f), vec3(0.0f)));
|
||||
sb.inner.mat2x4_f32 = mat2x4(vec4(0.0f), vec4(0.0f));
|
||||
sb.inner.mat3x2_f32 = mat3x2(vec2(0.0f), vec2(0.0f), vec2(0.0f));
|
||||
sb.inner.mat3x3_f32 = mat3(vec3(0.0f), vec3(0.0f), vec3(0.0f));
|
||||
assign_and_preserve_padding_1_sb_mat3x3_f32(mat3(vec3(0.0f), vec3(0.0f), vec3(0.0f)));
|
||||
sb.inner.mat3x4_f32 = mat3x4(vec4(0.0f), vec4(0.0f), vec4(0.0f));
|
||||
sb.inner.mat4x2_f32 = mat4x2(vec2(0.0f), vec2(0.0f), vec2(0.0f), vec2(0.0f));
|
||||
sb.inner.mat4x3_f32 = mat4x3(vec3(0.0f), vec3(0.0f), vec3(0.0f), vec3(0.0f));
|
||||
assign_and_preserve_padding_2_sb_mat4x3_f32(mat4x3(vec3(0.0f), vec3(0.0f), vec3(0.0f), vec3(0.0f)));
|
||||
sb.inner.mat4x4_f32 = mat4(vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f));
|
||||
sb.inner.mat2x2_f16 = f16mat2(f16vec2(0.0hf), f16vec2(0.0hf));
|
||||
sb.inner.mat2x3_f16 = f16mat2x3(f16vec3(0.0hf), f16vec3(0.0hf));
|
||||
assign_and_preserve_padding_3_sb_mat2x3_f16(f16mat2x3(f16vec3(0.0hf), f16vec3(0.0hf)));
|
||||
sb.inner.mat2x4_f16 = f16mat2x4(f16vec4(0.0hf), f16vec4(0.0hf));
|
||||
sb.inner.mat3x2_f16 = f16mat3x2(f16vec2(0.0hf), f16vec2(0.0hf), f16vec2(0.0hf));
|
||||
sb.inner.mat3x3_f16 = f16mat3(f16vec3(0.0hf), f16vec3(0.0hf), f16vec3(0.0hf));
|
||||
assign_and_preserve_padding_4_sb_mat3x3_f16(f16mat3(f16vec3(0.0hf), f16vec3(0.0hf), f16vec3(0.0hf)));
|
||||
sb.inner.mat3x4_f16 = f16mat3x4(f16vec4(0.0hf), f16vec4(0.0hf), f16vec4(0.0hf));
|
||||
sb.inner.mat4x2_f16 = f16mat4x2(f16vec2(0.0hf), f16vec2(0.0hf), f16vec2(0.0hf), f16vec2(0.0hf));
|
||||
sb.inner.mat4x3_f16 = f16mat4x3(f16vec3(0.0hf), f16vec3(0.0hf), f16vec3(0.0hf), f16vec3(0.0hf));
|
||||
assign_and_preserve_padding_5_sb_mat4x3_f16(f16mat4x3(f16vec3(0.0hf), f16vec3(0.0hf), f16vec3(0.0hf), f16vec3(0.0hf)));
|
||||
sb.inner.mat4x4_f16 = f16mat4(f16vec4(0.0hf), f16vec4(0.0hf), f16vec4(0.0hf), f16vec4(0.0hf));
|
||||
vec3 tint_symbol_2[2] = vec3[2](vec3(0.0f), vec3(0.0f));
|
||||
assign_and_preserve_padding_sb_arr2_vec3_f32(tint_symbol_2);
|
||||
assign_and_preserve_padding_6_sb_arr2_vec3_f32(tint_symbol_2);
|
||||
f16mat4x2 tint_symbol_3[2] = f16mat4x2[2](f16mat4x2(f16vec2(0.0hf), f16vec2(0.0hf), f16vec2(0.0hf), f16vec2(0.0hf)), f16mat4x2(f16vec2(0.0hf), f16vec2(0.0hf), f16vec2(0.0hf), f16vec2(0.0hf)));
|
||||
sb.inner.arr2_mat4x2_f16 = tint_symbol_3;
|
||||
Inner tint_symbol_4 = Inner(0, 0.0f, 0.0hf);
|
||||
assign_and_preserve_padding_1_sb_struct_inner(tint_symbol_4);
|
||||
assign_and_preserve_padding_7_sb_struct_inner(tint_symbol_4);
|
||||
Inner tint_symbol_5[4] = Inner[4](Inner(0, 0.0f, 0.0hf), Inner(0, 0.0f, 0.0hf), Inner(0, 0.0f, 0.0hf), Inner(0, 0.0f, 0.0hf));
|
||||
assign_and_preserve_padding_2_sb_array_struct_inner(tint_symbol_5);
|
||||
assign_and_preserve_padding_8_sb_array_struct_inner(tint_symbol_5);
|
||||
}
|
||||
|
||||
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
|
||||
|
||||
@@ -73,21 +73,57 @@ struct S {
|
||||
/* 0x035c */ tint_array<int8_t, 4> tint_pad_11;
|
||||
};
|
||||
|
||||
void assign_and_preserve_padding(device tint_array<float3, 2>* const dest, tint_array<float3, 2> value) {
|
||||
void assign_and_preserve_padding(device float2x3* const dest, float2x3 value) {
|
||||
(*(dest))[0u] = value[0u];
|
||||
(*(dest))[1u] = value[1u];
|
||||
}
|
||||
|
||||
void assign_and_preserve_padding_1(device float3x3* const dest, float3x3 value) {
|
||||
(*(dest))[0u] = value[0u];
|
||||
(*(dest))[1u] = value[1u];
|
||||
(*(dest))[2u] = value[2u];
|
||||
}
|
||||
|
||||
void assign_and_preserve_padding_2(device float4x3* const dest, float4x3 value) {
|
||||
(*(dest))[0u] = value[0u];
|
||||
(*(dest))[1u] = value[1u];
|
||||
(*(dest))[2u] = value[2u];
|
||||
(*(dest))[3u] = value[3u];
|
||||
}
|
||||
|
||||
void assign_and_preserve_padding_3(device half2x3* const dest, half2x3 value) {
|
||||
(*(dest))[0u] = value[0u];
|
||||
(*(dest))[1u] = value[1u];
|
||||
}
|
||||
|
||||
void assign_and_preserve_padding_4(device half3x3* const dest, half3x3 value) {
|
||||
(*(dest))[0u] = value[0u];
|
||||
(*(dest))[1u] = value[1u];
|
||||
(*(dest))[2u] = value[2u];
|
||||
}
|
||||
|
||||
void assign_and_preserve_padding_5(device half4x3* const dest, half4x3 value) {
|
||||
(*(dest))[0u] = value[0u];
|
||||
(*(dest))[1u] = value[1u];
|
||||
(*(dest))[2u] = value[2u];
|
||||
(*(dest))[3u] = value[3u];
|
||||
}
|
||||
|
||||
void assign_and_preserve_padding_6(device tint_array<float3, 2>* const dest, tint_array<float3, 2> value) {
|
||||
for(uint i = 0u; (i < 2u); i = (i + 1u)) {
|
||||
(*(dest))[i] = value[i];
|
||||
}
|
||||
}
|
||||
|
||||
void assign_and_preserve_padding_1(device Inner* const dest, Inner value) {
|
||||
void assign_and_preserve_padding_7(device Inner* const dest, Inner value) {
|
||||
(*(dest)).scalar_i32 = value.scalar_i32;
|
||||
(*(dest)).scalar_f32 = value.scalar_f32;
|
||||
(*(dest)).scalar_f16 = value.scalar_f16;
|
||||
}
|
||||
|
||||
void assign_and_preserve_padding_2(device tint_array<Inner, 4>* const dest, tint_array<Inner, 4> value) {
|
||||
void assign_and_preserve_padding_8(device tint_array<Inner, 4>* const dest, tint_array<Inner, 4> value) {
|
||||
for(uint i = 0u; (i < 4u); i = (i + 1u)) {
|
||||
assign_and_preserve_padding_1(&((*(dest))[i]), value[i]);
|
||||
assign_and_preserve_padding_7(&((*(dest))[i]), value[i]);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -109,31 +145,31 @@ kernel void tint_symbol(device S* tint_symbol_5 [[buffer(0)]]) {
|
||||
(*(tint_symbol_5)).vec4_u32 = uint4(0u);
|
||||
(*(tint_symbol_5)).vec4_f16 = half4(0.0h);
|
||||
(*(tint_symbol_5)).mat2x2_f32 = float2x2(float2(0.0f), float2(0.0f));
|
||||
(*(tint_symbol_5)).mat2x3_f32 = float2x3(float3(0.0f), float3(0.0f));
|
||||
assign_and_preserve_padding(&((*(tint_symbol_5)).mat2x3_f32), float2x3(float3(0.0f), float3(0.0f)));
|
||||
(*(tint_symbol_5)).mat2x4_f32 = float2x4(float4(0.0f), float4(0.0f));
|
||||
(*(tint_symbol_5)).mat3x2_f32 = float3x2(float2(0.0f), float2(0.0f), float2(0.0f));
|
||||
(*(tint_symbol_5)).mat3x3_f32 = float3x3(float3(0.0f), float3(0.0f), float3(0.0f));
|
||||
assign_and_preserve_padding_1(&((*(tint_symbol_5)).mat3x3_f32), float3x3(float3(0.0f), float3(0.0f), float3(0.0f)));
|
||||
(*(tint_symbol_5)).mat3x4_f32 = float3x4(float4(0.0f), float4(0.0f), float4(0.0f));
|
||||
(*(tint_symbol_5)).mat4x2_f32 = float4x2(float2(0.0f), float2(0.0f), float2(0.0f), float2(0.0f));
|
||||
(*(tint_symbol_5)).mat4x3_f32 = float4x3(float3(0.0f), float3(0.0f), float3(0.0f), float3(0.0f));
|
||||
assign_and_preserve_padding_2(&((*(tint_symbol_5)).mat4x3_f32), float4x3(float3(0.0f), float3(0.0f), float3(0.0f), float3(0.0f)));
|
||||
(*(tint_symbol_5)).mat4x4_f32 = float4x4(float4(0.0f), float4(0.0f), float4(0.0f), float4(0.0f));
|
||||
(*(tint_symbol_5)).mat2x2_f16 = half2x2(half2(0.0h), half2(0.0h));
|
||||
(*(tint_symbol_5)).mat2x3_f16 = half2x3(half3(0.0h), half3(0.0h));
|
||||
assign_and_preserve_padding_3(&((*(tint_symbol_5)).mat2x3_f16), half2x3(half3(0.0h), half3(0.0h)));
|
||||
(*(tint_symbol_5)).mat2x4_f16 = half2x4(half4(0.0h), half4(0.0h));
|
||||
(*(tint_symbol_5)).mat3x2_f16 = half3x2(half2(0.0h), half2(0.0h), half2(0.0h));
|
||||
(*(tint_symbol_5)).mat3x3_f16 = half3x3(half3(0.0h), half3(0.0h), half3(0.0h));
|
||||
assign_and_preserve_padding_4(&((*(tint_symbol_5)).mat3x3_f16), half3x3(half3(0.0h), half3(0.0h), half3(0.0h)));
|
||||
(*(tint_symbol_5)).mat3x4_f16 = half3x4(half4(0.0h), half4(0.0h), half4(0.0h));
|
||||
(*(tint_symbol_5)).mat4x2_f16 = half4x2(half2(0.0h), half2(0.0h), half2(0.0h), half2(0.0h));
|
||||
(*(tint_symbol_5)).mat4x3_f16 = half4x3(half3(0.0h), half3(0.0h), half3(0.0h), half3(0.0h));
|
||||
assign_and_preserve_padding_5(&((*(tint_symbol_5)).mat4x3_f16), half4x3(half3(0.0h), half3(0.0h), half3(0.0h), half3(0.0h)));
|
||||
(*(tint_symbol_5)).mat4x4_f16 = half4x4(half4(0.0h), half4(0.0h), half4(0.0h), half4(0.0h));
|
||||
tint_array<float3, 2> const tint_symbol_1 = tint_array<float3, 2>{};
|
||||
assign_and_preserve_padding(&((*(tint_symbol_5)).arr2_vec3_f32), tint_symbol_1);
|
||||
assign_and_preserve_padding_6(&((*(tint_symbol_5)).arr2_vec3_f32), tint_symbol_1);
|
||||
tint_array<half4x2, 2> const tint_symbol_4 = tint_array<half4x2, 2>{};
|
||||
(*(tint_symbol_5)).arr2_mat4x2_f16 = tint_symbol_4;
|
||||
Inner const tint_symbol_2 = Inner{};
|
||||
assign_and_preserve_padding_1(&((*(tint_symbol_5)).struct_inner), tint_symbol_2);
|
||||
assign_and_preserve_padding_7(&((*(tint_symbol_5)).struct_inner), tint_symbol_2);
|
||||
tint_array<Inner, 4> const tint_symbol_3 = tint_array<Inner, 4>{};
|
||||
assign_and_preserve_padding_2(&((*(tint_symbol_5)).array_struct_inner), tint_symbol_3);
|
||||
assign_and_preserve_padding_8(&((*(tint_symbol_5)).array_struct_inner), tint_symbol_3);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
; SPIR-V
|
||||
; Version: 1.3
|
||||
; Generator: Google Tint Compiler; 0
|
||||
; Bound: 272
|
||||
; Bound: 329
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
OpCapability Float16
|
||||
@@ -57,17 +57,29 @@
|
||||
OpMemberName %Inner 2 "scalar_f16"
|
||||
OpMemberName %S 37 "array_struct_inner"
|
||||
OpName %sb "sb"
|
||||
OpName %assign_and_preserve_padding_sb_arr2_vec3_f32 "assign_and_preserve_padding_sb_arr2_vec3_f32"
|
||||
OpName %assign_and_preserve_padding_sb_mat2x3_f32 "assign_and_preserve_padding_sb_mat2x3_f32"
|
||||
OpName %value "value"
|
||||
OpName %assign_and_preserve_padding_1_sb_mat3x3_f32 "assign_and_preserve_padding_1_sb_mat3x3_f32"
|
||||
OpName %value_0 "value"
|
||||
OpName %assign_and_preserve_padding_2_sb_mat4x3_f32 "assign_and_preserve_padding_2_sb_mat4x3_f32"
|
||||
OpName %value_1 "value"
|
||||
OpName %assign_and_preserve_padding_3_sb_mat2x3_f16 "assign_and_preserve_padding_3_sb_mat2x3_f16"
|
||||
OpName %value_2 "value"
|
||||
OpName %assign_and_preserve_padding_4_sb_mat3x3_f16 "assign_and_preserve_padding_4_sb_mat3x3_f16"
|
||||
OpName %value_3 "value"
|
||||
OpName %assign_and_preserve_padding_5_sb_mat4x3_f16 "assign_and_preserve_padding_5_sb_mat4x3_f16"
|
||||
OpName %value_4 "value"
|
||||
OpName %assign_and_preserve_padding_6_sb_arr2_vec3_f32 "assign_and_preserve_padding_6_sb_arr2_vec3_f32"
|
||||
OpName %value_5 "value"
|
||||
OpName %i "i"
|
||||
OpName %var_for_index "var_for_index"
|
||||
OpName %assign_and_preserve_padding_1_sb_struct_inner "assign_and_preserve_padding_1_sb_struct_inner"
|
||||
OpName %value_0 "value"
|
||||
OpName %assign_and_preserve_padding_1_sb_array_struct_inner_X "assign_and_preserve_padding_1_sb_array_struct_inner_X"
|
||||
OpName %assign_and_preserve_padding_7_sb_struct_inner "assign_and_preserve_padding_7_sb_struct_inner"
|
||||
OpName %value_6 "value"
|
||||
OpName %assign_and_preserve_padding_7_sb_array_struct_inner_X "assign_and_preserve_padding_7_sb_array_struct_inner_X"
|
||||
OpName %dest "dest"
|
||||
OpName %value_1 "value"
|
||||
OpName %assign_and_preserve_padding_2_sb_array_struct_inner "assign_and_preserve_padding_2_sb_array_struct_inner"
|
||||
OpName %value_2 "value"
|
||||
OpName %value_7 "value"
|
||||
OpName %assign_and_preserve_padding_8_sb_array_struct_inner "assign_and_preserve_padding_8_sb_array_struct_inner"
|
||||
OpName %value_8 "value"
|
||||
OpName %i_0 "i"
|
||||
OpName %var_for_index_1 "var_for_index_1"
|
||||
OpName %main "main"
|
||||
@@ -203,303 +215,384 @@
|
||||
%_ptr_StorageBuffer_sb_block = OpTypePointer StorageBuffer %sb_block
|
||||
%sb = OpVariable %_ptr_StorageBuffer_sb_block StorageBuffer
|
||||
%void = OpTypeVoid
|
||||
%45 = OpTypeFunction %void %_arr_v3float_uint_2
|
||||
%50 = OpConstantNull %uint
|
||||
%45 = OpTypeFunction %void %mat2v3float
|
||||
%uint_0 = OpConstant %uint 0
|
||||
%uint_17 = OpConstant %uint 17
|
||||
%52 = OpConstantNull %int
|
||||
%_ptr_StorageBuffer_v3float = OpTypePointer StorageBuffer %v3float
|
||||
%55 = OpConstantNull %uint
|
||||
%int_1 = OpConstant %int 1
|
||||
%uint_1 = OpConstant %uint 1
|
||||
%61 = OpTypeFunction %void %mat3v3float
|
||||
%uint_20 = OpConstant %uint 20
|
||||
%int_2 = OpConstant %int 2
|
||||
%73 = OpTypeFunction %void %mat4v3float
|
||||
%uint_23 = OpConstant %uint 23
|
||||
%int_3 = OpConstant %int 3
|
||||
%uint_3 = OpConstant %uint 3
|
||||
%88 = OpTypeFunction %void %mat2v3half
|
||||
%uint_26 = OpConstant %uint 26
|
||||
%_ptr_StorageBuffer_v3half = OpTypePointer StorageBuffer %v3half
|
||||
%98 = OpTypeFunction %void %mat3v3half
|
||||
%uint_29 = OpConstant %uint 29
|
||||
%109 = OpTypeFunction %void %mat4v3half
|
||||
%uint_32 = OpConstant %uint 32
|
||||
%122 = OpTypeFunction %void %_arr_v3float_uint_2
|
||||
%_ptr_Function_uint = OpTypePointer Function %uint
|
||||
%bool = OpTypeBool
|
||||
%_ptr_Function__arr_v3float_uint_2 = OpTypePointer Function %_arr_v3float_uint_2
|
||||
%65 = OpConstantNull %_arr_v3float_uint_2
|
||||
%uint_0 = OpConstant %uint 0
|
||||
%140 = OpConstantNull %_arr_v3float_uint_2
|
||||
%uint_34 = OpConstant %uint 34
|
||||
%_ptr_StorageBuffer_v3float = OpTypePointer StorageBuffer %v3float
|
||||
%_ptr_Function_v3float = OpTypePointer Function %v3float
|
||||
%uint_1 = OpConstant %uint 1
|
||||
%78 = OpTypeFunction %void %Inner
|
||||
%150 = OpTypeFunction %void %Inner
|
||||
%uint_36 = OpConstant %uint 36
|
||||
%_ptr_StorageBuffer_int = OpTypePointer StorageBuffer %int
|
||||
%_ptr_StorageBuffer_float = OpTypePointer StorageBuffer %float
|
||||
%_ptr_StorageBuffer_half = OpTypePointer StorageBuffer %half
|
||||
%_arr_uint_uint_1 = OpTypeArray %uint %uint_1
|
||||
%92 = OpTypeFunction %void %_arr_uint_uint_1 %Inner
|
||||
%164 = OpTypeFunction %void %_arr_uint_uint_1 %Inner
|
||||
%uint_37 = OpConstant %uint 37
|
||||
%99 = OpConstantNull %int
|
||||
%109 = OpTypeFunction %void %_arr_Inner_uint_4
|
||||
%180 = OpTypeFunction %void %_arr_Inner_uint_4
|
||||
%_ptr_Function__arr_Inner_uint_4 = OpTypePointer Function %_arr_Inner_uint_4
|
||||
%125 = OpConstantNull %_arr_Inner_uint_4
|
||||
%196 = OpConstantNull %_arr_Inner_uint_4
|
||||
%_ptr_Function_Inner = OpTypePointer Function %Inner
|
||||
%135 = OpTypeFunction %void
|
||||
%139 = OpConstantNull %float
|
||||
%206 = OpTypeFunction %void
|
||||
%210 = OpConstantNull %float
|
||||
%_ptr_StorageBuffer_uint = OpTypePointer StorageBuffer %uint
|
||||
%uint_3 = OpConstant %uint 3
|
||||
%145 = OpConstantNull %half
|
||||
%215 = OpConstantNull %half
|
||||
%_ptr_StorageBuffer_v2float = OpTypePointer StorageBuffer %v2float
|
||||
%148 = OpConstantNull %v2float
|
||||
%218 = OpConstantNull %v2float
|
||||
%uint_5 = OpConstant %uint 5
|
||||
%_ptr_StorageBuffer_v2int = OpTypePointer StorageBuffer %v2int
|
||||
%152 = OpConstantNull %v2int
|
||||
%222 = OpConstantNull %v2int
|
||||
%uint_6 = OpConstant %uint 6
|
||||
%_ptr_StorageBuffer_v2uint = OpTypePointer StorageBuffer %v2uint
|
||||
%156 = OpConstantNull %v2uint
|
||||
%226 = OpConstantNull %v2uint
|
||||
%uint_7 = OpConstant %uint 7
|
||||
%_ptr_StorageBuffer_v2half = OpTypePointer StorageBuffer %v2half
|
||||
%160 = OpConstantNull %v2half
|
||||
%230 = OpConstantNull %v2half
|
||||
%uint_8 = OpConstant %uint 8
|
||||
%163 = OpConstantNull %v3float
|
||||
%233 = OpConstantNull %v3float
|
||||
%uint_9 = OpConstant %uint 9
|
||||
%_ptr_StorageBuffer_v3int = OpTypePointer StorageBuffer %v3int
|
||||
%167 = OpConstantNull %v3int
|
||||
%237 = OpConstantNull %v3int
|
||||
%uint_10 = OpConstant %uint 10
|
||||
%_ptr_StorageBuffer_v3uint = OpTypePointer StorageBuffer %v3uint
|
||||
%171 = OpConstantNull %v3uint
|
||||
%241 = OpConstantNull %v3uint
|
||||
%uint_11 = OpConstant %uint 11
|
||||
%_ptr_StorageBuffer_v3half = OpTypePointer StorageBuffer %v3half
|
||||
%175 = OpConstantNull %v3half
|
||||
%244 = OpConstantNull %v3half
|
||||
%uint_12 = OpConstant %uint 12
|
||||
%_ptr_StorageBuffer_v4float = OpTypePointer StorageBuffer %v4float
|
||||
%179 = OpConstantNull %v4float
|
||||
%248 = OpConstantNull %v4float
|
||||
%uint_13 = OpConstant %uint 13
|
||||
%_ptr_StorageBuffer_v4int = OpTypePointer StorageBuffer %v4int
|
||||
%183 = OpConstantNull %v4int
|
||||
%252 = OpConstantNull %v4int
|
||||
%uint_14 = OpConstant %uint 14
|
||||
%_ptr_StorageBuffer_v4uint = OpTypePointer StorageBuffer %v4uint
|
||||
%187 = OpConstantNull %v4uint
|
||||
%256 = OpConstantNull %v4uint
|
||||
%uint_15 = OpConstant %uint 15
|
||||
%_ptr_StorageBuffer_v4half = OpTypePointer StorageBuffer %v4half
|
||||
%191 = OpConstantNull %v4half
|
||||
%260 = OpConstantNull %v4half
|
||||
%uint_16 = OpConstant %uint 16
|
||||
%_ptr_StorageBuffer_mat2v2float = OpTypePointer StorageBuffer %mat2v2float
|
||||
%195 = OpConstantNull %mat2v2float
|
||||
%uint_17 = OpConstant %uint 17
|
||||
%_ptr_StorageBuffer_mat2v3float = OpTypePointer StorageBuffer %mat2v3float
|
||||
%199 = OpConstantNull %mat2v3float
|
||||
%264 = OpConstantNull %mat2v2float
|
||||
%266 = OpConstantNull %mat2v3float
|
||||
%uint_18 = OpConstant %uint 18
|
||||
%_ptr_StorageBuffer_mat2v4float = OpTypePointer StorageBuffer %mat2v4float
|
||||
%203 = OpConstantNull %mat2v4float
|
||||
%270 = OpConstantNull %mat2v4float
|
||||
%uint_19 = OpConstant %uint 19
|
||||
%_ptr_StorageBuffer_mat3v2float = OpTypePointer StorageBuffer %mat3v2float
|
||||
%207 = OpConstantNull %mat3v2float
|
||||
%uint_20 = OpConstant %uint 20
|
||||
%_ptr_StorageBuffer_mat3v3float = OpTypePointer StorageBuffer %mat3v3float
|
||||
%211 = OpConstantNull %mat3v3float
|
||||
%274 = OpConstantNull %mat3v2float
|
||||
%276 = OpConstantNull %mat3v3float
|
||||
%uint_21 = OpConstant %uint 21
|
||||
%_ptr_StorageBuffer_mat3v4float = OpTypePointer StorageBuffer %mat3v4float
|
||||
%215 = OpConstantNull %mat3v4float
|
||||
%280 = OpConstantNull %mat3v4float
|
||||
%uint_22 = OpConstant %uint 22
|
||||
%_ptr_StorageBuffer_mat4v2float = OpTypePointer StorageBuffer %mat4v2float
|
||||
%219 = OpConstantNull %mat4v2float
|
||||
%uint_23 = OpConstant %uint 23
|
||||
%_ptr_StorageBuffer_mat4v3float = OpTypePointer StorageBuffer %mat4v3float
|
||||
%223 = OpConstantNull %mat4v3float
|
||||
%284 = OpConstantNull %mat4v2float
|
||||
%286 = OpConstantNull %mat4v3float
|
||||
%uint_24 = OpConstant %uint 24
|
||||
%_ptr_StorageBuffer_mat4v4float = OpTypePointer StorageBuffer %mat4v4float
|
||||
%227 = OpConstantNull %mat4v4float
|
||||
%290 = OpConstantNull %mat4v4float
|
||||
%uint_25 = OpConstant %uint 25
|
||||
%_ptr_StorageBuffer_mat2v2half = OpTypePointer StorageBuffer %mat2v2half
|
||||
%231 = OpConstantNull %mat2v2half
|
||||
%uint_26 = OpConstant %uint 26
|
||||
%_ptr_StorageBuffer_mat2v3half = OpTypePointer StorageBuffer %mat2v3half
|
||||
%235 = OpConstantNull %mat2v3half
|
||||
%294 = OpConstantNull %mat2v2half
|
||||
%296 = OpConstantNull %mat2v3half
|
||||
%uint_27 = OpConstant %uint 27
|
||||
%_ptr_StorageBuffer_mat2v4half = OpTypePointer StorageBuffer %mat2v4half
|
||||
%239 = OpConstantNull %mat2v4half
|
||||
%300 = OpConstantNull %mat2v4half
|
||||
%uint_28 = OpConstant %uint 28
|
||||
%_ptr_StorageBuffer_mat3v2half = OpTypePointer StorageBuffer %mat3v2half
|
||||
%243 = OpConstantNull %mat3v2half
|
||||
%uint_29 = OpConstant %uint 29
|
||||
%_ptr_StorageBuffer_mat3v3half = OpTypePointer StorageBuffer %mat3v3half
|
||||
%247 = OpConstantNull %mat3v3half
|
||||
%304 = OpConstantNull %mat3v2half
|
||||
%306 = OpConstantNull %mat3v3half
|
||||
%uint_30 = OpConstant %uint 30
|
||||
%_ptr_StorageBuffer_mat3v4half = OpTypePointer StorageBuffer %mat3v4half
|
||||
%251 = OpConstantNull %mat3v4half
|
||||
%310 = OpConstantNull %mat3v4half
|
||||
%uint_31 = OpConstant %uint 31
|
||||
%_ptr_StorageBuffer_mat4v2half = OpTypePointer StorageBuffer %mat4v2half
|
||||
%255 = OpConstantNull %mat4v2half
|
||||
%uint_32 = OpConstant %uint 32
|
||||
%_ptr_StorageBuffer_mat4v3half = OpTypePointer StorageBuffer %mat4v3half
|
||||
%259 = OpConstantNull %mat4v3half
|
||||
%314 = OpConstantNull %mat4v2half
|
||||
%316 = OpConstantNull %mat4v3half
|
||||
%uint_33 = OpConstant %uint 33
|
||||
%_ptr_StorageBuffer_mat4v4half = OpTypePointer StorageBuffer %mat4v4half
|
||||
%263 = OpConstantNull %mat4v4half
|
||||
%320 = OpConstantNull %mat4v4half
|
||||
%uint_35 = OpConstant %uint 35
|
||||
%_ptr_StorageBuffer__arr_mat4v2half_uint_2 = OpTypePointer StorageBuffer %_arr_mat4v2half_uint_2
|
||||
%268 = OpConstantNull %_arr_mat4v2half_uint_2
|
||||
%270 = OpConstantNull %Inner
|
||||
%assign_and_preserve_padding_sb_arr2_vec3_f32 = OpFunction %void None %45
|
||||
%value = OpFunctionParameter %_arr_v3float_uint_2
|
||||
%325 = OpConstantNull %_arr_mat4v2half_uint_2
|
||||
%327 = OpConstantNull %Inner
|
||||
%assign_and_preserve_padding_sb_mat2x3_f32 = OpFunction %void None %45
|
||||
%value = OpFunctionParameter %mat2v3float
|
||||
%49 = OpLabel
|
||||
%i = OpVariable %_ptr_Function_uint Function %50
|
||||
%var_for_index = OpVariable %_ptr_Function__arr_v3float_uint_2 Function %65
|
||||
OpStore %i %50
|
||||
OpBranch %53
|
||||
%53 = OpLabel
|
||||
OpLoopMerge %54 %55 None
|
||||
OpBranch %56
|
||||
%56 = OpLabel
|
||||
%58 = OpLoad %uint %i
|
||||
%59 = OpULessThan %bool %58 %uint_2
|
||||
%57 = OpLogicalNot %bool %59
|
||||
OpSelectionMerge %61 None
|
||||
OpBranchConditional %57 %62 %61
|
||||
%62 = OpLabel
|
||||
OpBranch %54
|
||||
%61 = OpLabel
|
||||
OpStore %var_for_index %value
|
||||
%68 = OpLoad %uint %i
|
||||
%70 = OpAccessChain %_ptr_StorageBuffer_v3float %sb %uint_0 %uint_34 %68
|
||||
%71 = OpLoad %uint %i
|
||||
%73 = OpAccessChain %_ptr_Function_v3float %var_for_index %71
|
||||
%74 = OpLoad %v3float %73
|
||||
OpStore %70 %74
|
||||
OpBranch %55
|
||||
%55 = OpLabel
|
||||
%75 = OpLoad %uint %i
|
||||
%77 = OpIAdd %uint %75 %uint_1
|
||||
OpStore %i %77
|
||||
OpBranch %53
|
||||
%54 = OpLabel
|
||||
%54 = OpAccessChain %_ptr_StorageBuffer_v3float %sb %uint_0 %uint_17 %52
|
||||
%56 = OpCompositeExtract %v3float %value 0
|
||||
OpStore %54 %56
|
||||
%58 = OpAccessChain %_ptr_StorageBuffer_v3float %sb %uint_0 %uint_17 %int_1
|
||||
%60 = OpCompositeExtract %v3float %value 1
|
||||
OpStore %58 %60
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%assign_and_preserve_padding_1_sb_struct_inner = OpFunction %void None %78
|
||||
%value_0 = OpFunctionParameter %Inner
|
||||
%81 = OpLabel
|
||||
%84 = OpAccessChain %_ptr_StorageBuffer_int %sb %uint_0 %uint_36 %uint_0
|
||||
%85 = OpCompositeExtract %int %value_0 0
|
||||
OpStore %84 %85
|
||||
%87 = OpAccessChain %_ptr_StorageBuffer_float %sb %uint_0 %uint_36 %uint_1
|
||||
%88 = OpCompositeExtract %float %value_0 1
|
||||
OpStore %87 %88
|
||||
%90 = OpAccessChain %_ptr_StorageBuffer_half %sb %uint_0 %uint_36 %uint_2
|
||||
%91 = OpCompositeExtract %half %value_0 2
|
||||
OpStore %90 %91
|
||||
%assign_and_preserve_padding_1_sb_mat3x3_f32 = OpFunction %void None %61
|
||||
%value_0 = OpFunctionParameter %mat3v3float
|
||||
%64 = OpLabel
|
||||
%66 = OpAccessChain %_ptr_StorageBuffer_v3float %sb %uint_0 %uint_20 %52
|
||||
%67 = OpCompositeExtract %v3float %value_0 0
|
||||
OpStore %66 %67
|
||||
%68 = OpAccessChain %_ptr_StorageBuffer_v3float %sb %uint_0 %uint_20 %int_1
|
||||
%69 = OpCompositeExtract %v3float %value_0 1
|
||||
OpStore %68 %69
|
||||
%71 = OpAccessChain %_ptr_StorageBuffer_v3float %sb %uint_0 %uint_20 %int_2
|
||||
%72 = OpCompositeExtract %v3float %value_0 2
|
||||
OpStore %71 %72
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%assign_and_preserve_padding_1_sb_array_struct_inner_X = OpFunction %void None %92
|
||||
%dest = OpFunctionParameter %_arr_uint_uint_1
|
||||
%value_1 = OpFunctionParameter %Inner
|
||||
%97 = OpLabel
|
||||
%100 = OpCompositeExtract %uint %dest 0
|
||||
%101 = OpAccessChain %_ptr_StorageBuffer_int %sb %uint_0 %uint_37 %100 %uint_0
|
||||
%102 = OpCompositeExtract %int %value_1 0
|
||||
OpStore %101 %102
|
||||
%103 = OpCompositeExtract %uint %dest 0
|
||||
%104 = OpAccessChain %_ptr_StorageBuffer_float %sb %uint_0 %uint_37 %103 %uint_1
|
||||
%105 = OpCompositeExtract %float %value_1 1
|
||||
OpStore %104 %105
|
||||
%106 = OpCompositeExtract %uint %dest 0
|
||||
%107 = OpAccessChain %_ptr_StorageBuffer_half %sb %uint_0 %uint_37 %106 %uint_2
|
||||
%108 = OpCompositeExtract %half %value_1 2
|
||||
%assign_and_preserve_padding_2_sb_mat4x3_f32 = OpFunction %void None %73
|
||||
%value_1 = OpFunctionParameter %mat4v3float
|
||||
%76 = OpLabel
|
||||
%78 = OpAccessChain %_ptr_StorageBuffer_v3float %sb %uint_0 %uint_23 %52
|
||||
%79 = OpCompositeExtract %v3float %value_1 0
|
||||
OpStore %78 %79
|
||||
%80 = OpAccessChain %_ptr_StorageBuffer_v3float %sb %uint_0 %uint_23 %int_1
|
||||
%81 = OpCompositeExtract %v3float %value_1 1
|
||||
OpStore %80 %81
|
||||
%82 = OpAccessChain %_ptr_StorageBuffer_v3float %sb %uint_0 %uint_23 %int_2
|
||||
%83 = OpCompositeExtract %v3float %value_1 2
|
||||
OpStore %82 %83
|
||||
%85 = OpAccessChain %_ptr_StorageBuffer_v3float %sb %uint_0 %uint_23 %int_3
|
||||
%87 = OpCompositeExtract %v3float %value_1 3
|
||||
OpStore %85 %87
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%assign_and_preserve_padding_3_sb_mat2x3_f16 = OpFunction %void None %88
|
||||
%value_2 = OpFunctionParameter %mat2v3half
|
||||
%91 = OpLabel
|
||||
%94 = OpAccessChain %_ptr_StorageBuffer_v3half %sb %uint_0 %uint_26 %52
|
||||
%95 = OpCompositeExtract %v3half %value_2 0
|
||||
OpStore %94 %95
|
||||
%96 = OpAccessChain %_ptr_StorageBuffer_v3half %sb %uint_0 %uint_26 %int_1
|
||||
%97 = OpCompositeExtract %v3half %value_2 1
|
||||
OpStore %96 %97
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%assign_and_preserve_padding_4_sb_mat3x3_f16 = OpFunction %void None %98
|
||||
%value_3 = OpFunctionParameter %mat3v3half
|
||||
%101 = OpLabel
|
||||
%103 = OpAccessChain %_ptr_StorageBuffer_v3half %sb %uint_0 %uint_29 %52
|
||||
%104 = OpCompositeExtract %v3half %value_3 0
|
||||
OpStore %103 %104
|
||||
%105 = OpAccessChain %_ptr_StorageBuffer_v3half %sb %uint_0 %uint_29 %int_1
|
||||
%106 = OpCompositeExtract %v3half %value_3 1
|
||||
OpStore %105 %106
|
||||
%107 = OpAccessChain %_ptr_StorageBuffer_v3half %sb %uint_0 %uint_29 %int_2
|
||||
%108 = OpCompositeExtract %v3half %value_3 2
|
||||
OpStore %107 %108
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%assign_and_preserve_padding_2_sb_array_struct_inner = OpFunction %void None %109
|
||||
%value_2 = OpFunctionParameter %_arr_Inner_uint_4
|
||||
%assign_and_preserve_padding_5_sb_mat4x3_f16 = OpFunction %void None %109
|
||||
%value_4 = OpFunctionParameter %mat4v3half
|
||||
%112 = OpLabel
|
||||
%i_0 = OpVariable %_ptr_Function_uint Function %50
|
||||
%var_for_index_1 = OpVariable %_ptr_Function__arr_Inner_uint_4 Function %125
|
||||
OpStore %i_0 %50
|
||||
OpBranch %114
|
||||
%114 = OpLabel
|
||||
OpLoopMerge %115 %116 None
|
||||
OpBranch %117
|
||||
%117 = OpLabel
|
||||
%119 = OpLoad %uint %i_0
|
||||
%120 = OpULessThan %bool %119 %uint_4
|
||||
%118 = OpLogicalNot %bool %120
|
||||
OpSelectionMerge %121 None
|
||||
OpBranchConditional %118 %122 %121
|
||||
%122 = OpLabel
|
||||
OpBranch %115
|
||||
%121 = OpLabel
|
||||
OpStore %var_for_index_1 %value_2
|
||||
%127 = OpLoad %uint %i_0
|
||||
%128 = OpCompositeConstruct %_arr_uint_uint_1 %127
|
||||
%129 = OpLoad %uint %i_0
|
||||
%131 = OpAccessChain %_ptr_Function_Inner %var_for_index_1 %129
|
||||
%132 = OpLoad %Inner %131
|
||||
%126 = OpFunctionCall %void %assign_and_preserve_padding_1_sb_array_struct_inner_X %128 %132
|
||||
OpBranch %116
|
||||
%116 = OpLabel
|
||||
%133 = OpLoad %uint %i_0
|
||||
%134 = OpIAdd %uint %133 %uint_1
|
||||
OpStore %i_0 %134
|
||||
OpBranch %114
|
||||
%115 = OpLabel
|
||||
%114 = OpAccessChain %_ptr_StorageBuffer_v3half %sb %uint_0 %uint_32 %52
|
||||
%115 = OpCompositeExtract %v3half %value_4 0
|
||||
OpStore %114 %115
|
||||
%116 = OpAccessChain %_ptr_StorageBuffer_v3half %sb %uint_0 %uint_32 %int_1
|
||||
%117 = OpCompositeExtract %v3half %value_4 1
|
||||
OpStore %116 %117
|
||||
%118 = OpAccessChain %_ptr_StorageBuffer_v3half %sb %uint_0 %uint_32 %int_2
|
||||
%119 = OpCompositeExtract %v3half %value_4 2
|
||||
OpStore %118 %119
|
||||
%120 = OpAccessChain %_ptr_StorageBuffer_v3half %sb %uint_0 %uint_32 %int_3
|
||||
%121 = OpCompositeExtract %v3half %value_4 3
|
||||
OpStore %120 %121
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%main = OpFunction %void None %135
|
||||
%assign_and_preserve_padding_6_sb_arr2_vec3_f32 = OpFunction %void None %122
|
||||
%value_5 = OpFunctionParameter %_arr_v3float_uint_2
|
||||
%125 = OpLabel
|
||||
%i = OpVariable %_ptr_Function_uint Function %55
|
||||
%var_for_index = OpVariable %_ptr_Function__arr_v3float_uint_2 Function %140
|
||||
OpStore %i %55
|
||||
OpBranch %128
|
||||
%128 = OpLabel
|
||||
OpLoopMerge %129 %130 None
|
||||
OpBranch %131
|
||||
%131 = OpLabel
|
||||
%133 = OpLoad %uint %i
|
||||
%134 = OpULessThan %bool %133 %uint_2
|
||||
%132 = OpLogicalNot %bool %134
|
||||
OpSelectionMerge %136 None
|
||||
OpBranchConditional %132 %137 %136
|
||||
%137 = OpLabel
|
||||
%138 = OpAccessChain %_ptr_StorageBuffer_float %sb %uint_0 %uint_0
|
||||
OpStore %138 %139
|
||||
%140 = OpAccessChain %_ptr_StorageBuffer_int %sb %uint_0 %uint_1
|
||||
OpStore %140 %99
|
||||
%142 = OpAccessChain %_ptr_StorageBuffer_uint %sb %uint_0 %uint_2
|
||||
OpStore %142 %50
|
||||
%144 = OpAccessChain %_ptr_StorageBuffer_half %sb %uint_0 %uint_3
|
||||
OpStore %144 %145
|
||||
%147 = OpAccessChain %_ptr_StorageBuffer_v2float %sb %uint_0 %uint_4
|
||||
OpStore %147 %148
|
||||
%151 = OpAccessChain %_ptr_StorageBuffer_v2int %sb %uint_0 %uint_5
|
||||
OpStore %151 %152
|
||||
%155 = OpAccessChain %_ptr_StorageBuffer_v2uint %sb %uint_0 %uint_6
|
||||
OpStore %155 %156
|
||||
%159 = OpAccessChain %_ptr_StorageBuffer_v2half %sb %uint_0 %uint_7
|
||||
OpStore %159 %160
|
||||
%162 = OpAccessChain %_ptr_StorageBuffer_v3float %sb %uint_0 %uint_8
|
||||
OpStore %162 %163
|
||||
%166 = OpAccessChain %_ptr_StorageBuffer_v3int %sb %uint_0 %uint_9
|
||||
OpStore %166 %167
|
||||
%170 = OpAccessChain %_ptr_StorageBuffer_v3uint %sb %uint_0 %uint_10
|
||||
OpStore %170 %171
|
||||
%174 = OpAccessChain %_ptr_StorageBuffer_v3half %sb %uint_0 %uint_11
|
||||
OpStore %174 %175
|
||||
%178 = OpAccessChain %_ptr_StorageBuffer_v4float %sb %uint_0 %uint_12
|
||||
OpStore %178 %179
|
||||
%182 = OpAccessChain %_ptr_StorageBuffer_v4int %sb %uint_0 %uint_13
|
||||
OpStore %182 %183
|
||||
%186 = OpAccessChain %_ptr_StorageBuffer_v4uint %sb %uint_0 %uint_14
|
||||
OpStore %186 %187
|
||||
%190 = OpAccessChain %_ptr_StorageBuffer_v4half %sb %uint_0 %uint_15
|
||||
OpStore %190 %191
|
||||
%194 = OpAccessChain %_ptr_StorageBuffer_mat2v2float %sb %uint_0 %uint_16
|
||||
OpStore %194 %195
|
||||
%198 = OpAccessChain %_ptr_StorageBuffer_mat2v3float %sb %uint_0 %uint_17
|
||||
OpStore %198 %199
|
||||
%202 = OpAccessChain %_ptr_StorageBuffer_mat2v4float %sb %uint_0 %uint_18
|
||||
OpStore %202 %203
|
||||
%206 = OpAccessChain %_ptr_StorageBuffer_mat3v2float %sb %uint_0 %uint_19
|
||||
OpStore %206 %207
|
||||
%210 = OpAccessChain %_ptr_StorageBuffer_mat3v3float %sb %uint_0 %uint_20
|
||||
OpStore %210 %211
|
||||
%214 = OpAccessChain %_ptr_StorageBuffer_mat3v4float %sb %uint_0 %uint_21
|
||||
OpStore %214 %215
|
||||
%218 = OpAccessChain %_ptr_StorageBuffer_mat4v2float %sb %uint_0 %uint_22
|
||||
OpStore %218 %219
|
||||
%222 = OpAccessChain %_ptr_StorageBuffer_mat4v3float %sb %uint_0 %uint_23
|
||||
OpStore %222 %223
|
||||
%226 = OpAccessChain %_ptr_StorageBuffer_mat4v4float %sb %uint_0 %uint_24
|
||||
OpStore %226 %227
|
||||
%230 = OpAccessChain %_ptr_StorageBuffer_mat2v2half %sb %uint_0 %uint_25
|
||||
OpStore %230 %231
|
||||
%234 = OpAccessChain %_ptr_StorageBuffer_mat2v3half %sb %uint_0 %uint_26
|
||||
OpStore %234 %235
|
||||
%238 = OpAccessChain %_ptr_StorageBuffer_mat2v4half %sb %uint_0 %uint_27
|
||||
OpStore %238 %239
|
||||
%242 = OpAccessChain %_ptr_StorageBuffer_mat3v2half %sb %uint_0 %uint_28
|
||||
OpStore %242 %243
|
||||
%246 = OpAccessChain %_ptr_StorageBuffer_mat3v3half %sb %uint_0 %uint_29
|
||||
OpStore %246 %247
|
||||
%250 = OpAccessChain %_ptr_StorageBuffer_mat3v4half %sb %uint_0 %uint_30
|
||||
OpStore %250 %251
|
||||
%254 = OpAccessChain %_ptr_StorageBuffer_mat4v2half %sb %uint_0 %uint_31
|
||||
OpStore %254 %255
|
||||
%258 = OpAccessChain %_ptr_StorageBuffer_mat4v3half %sb %uint_0 %uint_32
|
||||
OpStore %258 %259
|
||||
%262 = OpAccessChain %_ptr_StorageBuffer_mat4v4half %sb %uint_0 %uint_33
|
||||
OpStore %262 %263
|
||||
%264 = OpFunctionCall %void %assign_and_preserve_padding_sb_arr2_vec3_f32 %65
|
||||
%267 = OpAccessChain %_ptr_StorageBuffer__arr_mat4v2half_uint_2 %sb %uint_0 %uint_35
|
||||
OpStore %267 %268
|
||||
%269 = OpFunctionCall %void %assign_and_preserve_padding_1_sb_struct_inner %270
|
||||
%271 = OpFunctionCall %void %assign_and_preserve_padding_2_sb_array_struct_inner %125
|
||||
OpBranch %129
|
||||
%136 = OpLabel
|
||||
OpStore %var_for_index %value_5
|
||||
%142 = OpLoad %uint %i
|
||||
%143 = OpAccessChain %_ptr_StorageBuffer_v3float %sb %uint_0 %uint_34 %142
|
||||
%144 = OpLoad %uint %i
|
||||
%146 = OpAccessChain %_ptr_Function_v3float %var_for_index %144
|
||||
%147 = OpLoad %v3float %146
|
||||
OpStore %143 %147
|
||||
OpBranch %130
|
||||
%130 = OpLabel
|
||||
%148 = OpLoad %uint %i
|
||||
%149 = OpIAdd %uint %148 %uint_1
|
||||
OpStore %i %149
|
||||
OpBranch %128
|
||||
%129 = OpLabel
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%assign_and_preserve_padding_7_sb_struct_inner = OpFunction %void None %150
|
||||
%value_6 = OpFunctionParameter %Inner
|
||||
%153 = OpLabel
|
||||
%156 = OpAccessChain %_ptr_StorageBuffer_int %sb %uint_0 %uint_36 %uint_0
|
||||
%157 = OpCompositeExtract %int %value_6 0
|
||||
OpStore %156 %157
|
||||
%159 = OpAccessChain %_ptr_StorageBuffer_float %sb %uint_0 %uint_36 %uint_1
|
||||
%160 = OpCompositeExtract %float %value_6 1
|
||||
OpStore %159 %160
|
||||
%162 = OpAccessChain %_ptr_StorageBuffer_half %sb %uint_0 %uint_36 %uint_2
|
||||
%163 = OpCompositeExtract %half %value_6 2
|
||||
OpStore %162 %163
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%assign_and_preserve_padding_7_sb_array_struct_inner_X = OpFunction %void None %164
|
||||
%dest = OpFunctionParameter %_arr_uint_uint_1
|
||||
%value_7 = OpFunctionParameter %Inner
|
||||
%169 = OpLabel
|
||||
%171 = OpCompositeExtract %uint %dest 0
|
||||
%172 = OpAccessChain %_ptr_StorageBuffer_int %sb %uint_0 %uint_37 %171 %uint_0
|
||||
%173 = OpCompositeExtract %int %value_7 0
|
||||
OpStore %172 %173
|
||||
%174 = OpCompositeExtract %uint %dest 0
|
||||
%175 = OpAccessChain %_ptr_StorageBuffer_float %sb %uint_0 %uint_37 %174 %uint_1
|
||||
%176 = OpCompositeExtract %float %value_7 1
|
||||
OpStore %175 %176
|
||||
%177 = OpCompositeExtract %uint %dest 0
|
||||
%178 = OpAccessChain %_ptr_StorageBuffer_half %sb %uint_0 %uint_37 %177 %uint_2
|
||||
%179 = OpCompositeExtract %half %value_7 2
|
||||
OpStore %178 %179
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%assign_and_preserve_padding_8_sb_array_struct_inner = OpFunction %void None %180
|
||||
%value_8 = OpFunctionParameter %_arr_Inner_uint_4
|
||||
%183 = OpLabel
|
||||
%i_0 = OpVariable %_ptr_Function_uint Function %55
|
||||
%var_for_index_1 = OpVariable %_ptr_Function__arr_Inner_uint_4 Function %196
|
||||
OpStore %i_0 %55
|
||||
OpBranch %185
|
||||
%185 = OpLabel
|
||||
OpLoopMerge %186 %187 None
|
||||
OpBranch %188
|
||||
%188 = OpLabel
|
||||
%190 = OpLoad %uint %i_0
|
||||
%191 = OpULessThan %bool %190 %uint_4
|
||||
%189 = OpLogicalNot %bool %191
|
||||
OpSelectionMerge %192 None
|
||||
OpBranchConditional %189 %193 %192
|
||||
%193 = OpLabel
|
||||
OpBranch %186
|
||||
%192 = OpLabel
|
||||
OpStore %var_for_index_1 %value_8
|
||||
%198 = OpLoad %uint %i_0
|
||||
%199 = OpCompositeConstruct %_arr_uint_uint_1 %198
|
||||
%200 = OpLoad %uint %i_0
|
||||
%202 = OpAccessChain %_ptr_Function_Inner %var_for_index_1 %200
|
||||
%203 = OpLoad %Inner %202
|
||||
%197 = OpFunctionCall %void %assign_and_preserve_padding_7_sb_array_struct_inner_X %199 %203
|
||||
OpBranch %187
|
||||
%187 = OpLabel
|
||||
%204 = OpLoad %uint %i_0
|
||||
%205 = OpIAdd %uint %204 %uint_1
|
||||
OpStore %i_0 %205
|
||||
OpBranch %185
|
||||
%186 = OpLabel
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%main = OpFunction %void None %206
|
||||
%208 = OpLabel
|
||||
%209 = OpAccessChain %_ptr_StorageBuffer_float %sb %uint_0 %uint_0
|
||||
OpStore %209 %210
|
||||
%211 = OpAccessChain %_ptr_StorageBuffer_int %sb %uint_0 %uint_1
|
||||
OpStore %211 %52
|
||||
%213 = OpAccessChain %_ptr_StorageBuffer_uint %sb %uint_0 %uint_2
|
||||
OpStore %213 %55
|
||||
%214 = OpAccessChain %_ptr_StorageBuffer_half %sb %uint_0 %uint_3
|
||||
OpStore %214 %215
|
||||
%217 = OpAccessChain %_ptr_StorageBuffer_v2float %sb %uint_0 %uint_4
|
||||
OpStore %217 %218
|
||||
%221 = OpAccessChain %_ptr_StorageBuffer_v2int %sb %uint_0 %uint_5
|
||||
OpStore %221 %222
|
||||
%225 = OpAccessChain %_ptr_StorageBuffer_v2uint %sb %uint_0 %uint_6
|
||||
OpStore %225 %226
|
||||
%229 = OpAccessChain %_ptr_StorageBuffer_v2half %sb %uint_0 %uint_7
|
||||
OpStore %229 %230
|
||||
%232 = OpAccessChain %_ptr_StorageBuffer_v3float %sb %uint_0 %uint_8
|
||||
OpStore %232 %233
|
||||
%236 = OpAccessChain %_ptr_StorageBuffer_v3int %sb %uint_0 %uint_9
|
||||
OpStore %236 %237
|
||||
%240 = OpAccessChain %_ptr_StorageBuffer_v3uint %sb %uint_0 %uint_10
|
||||
OpStore %240 %241
|
||||
%243 = OpAccessChain %_ptr_StorageBuffer_v3half %sb %uint_0 %uint_11
|
||||
OpStore %243 %244
|
||||
%247 = OpAccessChain %_ptr_StorageBuffer_v4float %sb %uint_0 %uint_12
|
||||
OpStore %247 %248
|
||||
%251 = OpAccessChain %_ptr_StorageBuffer_v4int %sb %uint_0 %uint_13
|
||||
OpStore %251 %252
|
||||
%255 = OpAccessChain %_ptr_StorageBuffer_v4uint %sb %uint_0 %uint_14
|
||||
OpStore %255 %256
|
||||
%259 = OpAccessChain %_ptr_StorageBuffer_v4half %sb %uint_0 %uint_15
|
||||
OpStore %259 %260
|
||||
%263 = OpAccessChain %_ptr_StorageBuffer_mat2v2float %sb %uint_0 %uint_16
|
||||
OpStore %263 %264
|
||||
%265 = OpFunctionCall %void %assign_and_preserve_padding_sb_mat2x3_f32 %266
|
||||
%269 = OpAccessChain %_ptr_StorageBuffer_mat2v4float %sb %uint_0 %uint_18
|
||||
OpStore %269 %270
|
||||
%273 = OpAccessChain %_ptr_StorageBuffer_mat3v2float %sb %uint_0 %uint_19
|
||||
OpStore %273 %274
|
||||
%275 = OpFunctionCall %void %assign_and_preserve_padding_1_sb_mat3x3_f32 %276
|
||||
%279 = OpAccessChain %_ptr_StorageBuffer_mat3v4float %sb %uint_0 %uint_21
|
||||
OpStore %279 %280
|
||||
%283 = OpAccessChain %_ptr_StorageBuffer_mat4v2float %sb %uint_0 %uint_22
|
||||
OpStore %283 %284
|
||||
%285 = OpFunctionCall %void %assign_and_preserve_padding_2_sb_mat4x3_f32 %286
|
||||
%289 = OpAccessChain %_ptr_StorageBuffer_mat4v4float %sb %uint_0 %uint_24
|
||||
OpStore %289 %290
|
||||
%293 = OpAccessChain %_ptr_StorageBuffer_mat2v2half %sb %uint_0 %uint_25
|
||||
OpStore %293 %294
|
||||
%295 = OpFunctionCall %void %assign_and_preserve_padding_3_sb_mat2x3_f16 %296
|
||||
%299 = OpAccessChain %_ptr_StorageBuffer_mat2v4half %sb %uint_0 %uint_27
|
||||
OpStore %299 %300
|
||||
%303 = OpAccessChain %_ptr_StorageBuffer_mat3v2half %sb %uint_0 %uint_28
|
||||
OpStore %303 %304
|
||||
%305 = OpFunctionCall %void %assign_and_preserve_padding_4_sb_mat3x3_f16 %306
|
||||
%309 = OpAccessChain %_ptr_StorageBuffer_mat3v4half %sb %uint_0 %uint_30
|
||||
OpStore %309 %310
|
||||
%313 = OpAccessChain %_ptr_StorageBuffer_mat4v2half %sb %uint_0 %uint_31
|
||||
OpStore %313 %314
|
||||
%315 = OpFunctionCall %void %assign_and_preserve_padding_5_sb_mat4x3_f16 %316
|
||||
%319 = OpAccessChain %_ptr_StorageBuffer_mat4v4half %sb %uint_0 %uint_33
|
||||
OpStore %319 %320
|
||||
%321 = OpFunctionCall %void %assign_and_preserve_padding_6_sb_arr2_vec3_f32 %140
|
||||
%324 = OpAccessChain %_ptr_StorageBuffer__arr_mat4v2half_uint_2 %sb %uint_0 %uint_35
|
||||
OpStore %324 %325
|
||||
%326 = OpFunctionCall %void %assign_and_preserve_padding_7_sb_struct_inner %327
|
||||
%328 = OpFunctionCall %void %assign_and_preserve_padding_8_sb_array_struct_inner %196
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
|
||||
@@ -9,8 +9,13 @@ layout(binding = 1, std430) buffer tint_symbol_block_ssbo_1 {
|
||||
f16mat2x3 inner;
|
||||
} tint_symbol_1;
|
||||
|
||||
void assign_and_preserve_padding_tint_symbol_1(f16mat2x3 value) {
|
||||
tint_symbol_1.inner[0] = value[0u];
|
||||
tint_symbol_1.inner[1] = value[1u];
|
||||
}
|
||||
|
||||
void tint_symbol_2() {
|
||||
tint_symbol_1.inner = tint_symbol.inner;
|
||||
assign_and_preserve_padding_tint_symbol_1(tint_symbol.inner);
|
||||
}
|
||||
|
||||
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
|
||||
|
||||
@@ -1,8 +1,13 @@
|
||||
#include <metal_stdlib>
|
||||
|
||||
using namespace metal;
|
||||
void assign_and_preserve_padding(device half2x3* const dest, half2x3 value) {
|
||||
(*(dest))[0u] = value[0u];
|
||||
(*(dest))[1u] = value[1u];
|
||||
}
|
||||
|
||||
kernel void tint_symbol(device half2x3* tint_symbol_1 [[buffer(0)]], const device half2x3* tint_symbol_2 [[buffer(1)]]) {
|
||||
*(tint_symbol_1) = *(tint_symbol_2);
|
||||
assign_and_preserve_padding(tint_symbol_1, *(tint_symbol_2));
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
; SPIR-V
|
||||
; Version: 1.3
|
||||
; Generator: Google Tint Compiler; 0
|
||||
; Bound: 18
|
||||
; Bound: 32
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
OpCapability Float16
|
||||
@@ -15,6 +15,8 @@
|
||||
OpMemberName %in_block 0 "inner"
|
||||
OpName %in "in"
|
||||
OpName %out "out"
|
||||
OpName %assign_and_preserve_padding_out "assign_and_preserve_padding_out"
|
||||
OpName %value "value"
|
||||
OpName %main "main"
|
||||
OpDecorate %in_block Block
|
||||
OpMemberDecorate %in_block 0 Offset 0
|
||||
@@ -33,15 +35,32 @@
|
||||
%in = OpVariable %_ptr_StorageBuffer_in_block StorageBuffer
|
||||
%out = OpVariable %_ptr_StorageBuffer_in_block StorageBuffer
|
||||
%void = OpTypeVoid
|
||||
%8 = OpTypeFunction %void
|
||||
%8 = OpTypeFunction %void %mat2v3half
|
||||
%uint = OpTypeInt 32 0
|
||||
%uint_0 = OpConstant %uint 0
|
||||
%int = OpTypeInt 32 1
|
||||
%16 = OpConstantNull %int
|
||||
%_ptr_StorageBuffer_v3half = OpTypePointer StorageBuffer %v3half
|
||||
%19 = OpConstantNull %uint
|
||||
%int_1 = OpConstant %int 1
|
||||
%uint_1 = OpConstant %uint 1
|
||||
%25 = OpTypeFunction %void
|
||||
%_ptr_StorageBuffer_mat2v3half = OpTypePointer StorageBuffer %mat2v3half
|
||||
%main = OpFunction %void None %8
|
||||
%11 = OpLabel
|
||||
%15 = OpAccessChain %_ptr_StorageBuffer_mat2v3half %out %uint_0
|
||||
%16 = OpAccessChain %_ptr_StorageBuffer_mat2v3half %in %uint_0
|
||||
%17 = OpLoad %mat2v3half %16
|
||||
OpStore %15 %17
|
||||
%assign_and_preserve_padding_out = OpFunction %void None %8
|
||||
%value = OpFunctionParameter %mat2v3half
|
||||
%12 = OpLabel
|
||||
%18 = OpAccessChain %_ptr_StorageBuffer_v3half %out %uint_0 %16
|
||||
%20 = OpCompositeExtract %v3half %value 0
|
||||
OpStore %18 %20
|
||||
%22 = OpAccessChain %_ptr_StorageBuffer_v3half %out %uint_0 %int_1
|
||||
%24 = OpCompositeExtract %v3half %value 1
|
||||
OpStore %22 %24
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%main = OpFunction %void None %25
|
||||
%27 = OpLabel
|
||||
%30 = OpAccessChain %_ptr_StorageBuffer_mat2v3half %in %uint_0
|
||||
%31 = OpLoad %mat2v3half %30
|
||||
%28 = OpFunctionCall %void %assign_and_preserve_padding_out %31
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
|
||||
@@ -8,8 +8,13 @@ layout(binding = 1, std430) buffer tint_symbol_block_ssbo_1 {
|
||||
mat2x3 inner;
|
||||
} tint_symbol_1;
|
||||
|
||||
void assign_and_preserve_padding_tint_symbol_1(mat2x3 value) {
|
||||
tint_symbol_1.inner[0] = value[0u];
|
||||
tint_symbol_1.inner[1] = value[1u];
|
||||
}
|
||||
|
||||
void tint_symbol_2() {
|
||||
tint_symbol_1.inner = tint_symbol.inner;
|
||||
assign_and_preserve_padding_tint_symbol_1(tint_symbol.inner);
|
||||
}
|
||||
|
||||
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
|
||||
|
||||
@@ -1,8 +1,13 @@
|
||||
#include <metal_stdlib>
|
||||
|
||||
using namespace metal;
|
||||
void assign_and_preserve_padding(device float2x3* const dest, float2x3 value) {
|
||||
(*(dest))[0u] = value[0u];
|
||||
(*(dest))[1u] = value[1u];
|
||||
}
|
||||
|
||||
kernel void tint_symbol(device float2x3* tint_symbol_1 [[buffer(0)]], const device float2x3* tint_symbol_2 [[buffer(1)]]) {
|
||||
*(tint_symbol_1) = *(tint_symbol_2);
|
||||
assign_and_preserve_padding(tint_symbol_1, *(tint_symbol_2));
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
; SPIR-V
|
||||
; Version: 1.3
|
||||
; Generator: Google Tint Compiler; 0
|
||||
; Bound: 18
|
||||
; Bound: 32
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
OpMemoryModel Logical GLSL450
|
||||
@@ -11,6 +11,8 @@
|
||||
OpMemberName %in_block 0 "inner"
|
||||
OpName %in "in"
|
||||
OpName %out "out"
|
||||
OpName %assign_and_preserve_padding_out "assign_and_preserve_padding_out"
|
||||
OpName %value "value"
|
||||
OpName %main "main"
|
||||
OpDecorate %in_block Block
|
||||
OpMemberDecorate %in_block 0 Offset 0
|
||||
@@ -29,15 +31,32 @@
|
||||
%in = OpVariable %_ptr_StorageBuffer_in_block StorageBuffer
|
||||
%out = OpVariable %_ptr_StorageBuffer_in_block StorageBuffer
|
||||
%void = OpTypeVoid
|
||||
%8 = OpTypeFunction %void
|
||||
%8 = OpTypeFunction %void %mat2v3float
|
||||
%uint = OpTypeInt 32 0
|
||||
%uint_0 = OpConstant %uint 0
|
||||
%int = OpTypeInt 32 1
|
||||
%16 = OpConstantNull %int
|
||||
%_ptr_StorageBuffer_v3float = OpTypePointer StorageBuffer %v3float
|
||||
%19 = OpConstantNull %uint
|
||||
%int_1 = OpConstant %int 1
|
||||
%uint_1 = OpConstant %uint 1
|
||||
%25 = OpTypeFunction %void
|
||||
%_ptr_StorageBuffer_mat2v3float = OpTypePointer StorageBuffer %mat2v3float
|
||||
%main = OpFunction %void None %8
|
||||
%11 = OpLabel
|
||||
%15 = OpAccessChain %_ptr_StorageBuffer_mat2v3float %out %uint_0
|
||||
%16 = OpAccessChain %_ptr_StorageBuffer_mat2v3float %in %uint_0
|
||||
%17 = OpLoad %mat2v3float %16
|
||||
OpStore %15 %17
|
||||
%assign_and_preserve_padding_out = OpFunction %void None %8
|
||||
%value = OpFunctionParameter %mat2v3float
|
||||
%12 = OpLabel
|
||||
%18 = OpAccessChain %_ptr_StorageBuffer_v3float %out %uint_0 %16
|
||||
%20 = OpCompositeExtract %v3float %value 0
|
||||
OpStore %18 %20
|
||||
%22 = OpAccessChain %_ptr_StorageBuffer_v3float %out %uint_0 %int_1
|
||||
%24 = OpCompositeExtract %v3float %value 1
|
||||
OpStore %22 %24
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%main = OpFunction %void None %25
|
||||
%27 = OpLabel
|
||||
%30 = OpAccessChain %_ptr_StorageBuffer_mat2v3float %in %uint_0
|
||||
%31 = OpLoad %mat2v3float %30
|
||||
%28 = OpFunctionCall %void %assign_and_preserve_padding_out %31
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
|
||||
@@ -9,8 +9,14 @@ layout(binding = 1, std430) buffer tint_symbol_block_ssbo_1 {
|
||||
f16mat3 inner;
|
||||
} tint_symbol_1;
|
||||
|
||||
void assign_and_preserve_padding_tint_symbol_1(f16mat3 value) {
|
||||
tint_symbol_1.inner[0] = value[0u];
|
||||
tint_symbol_1.inner[1] = value[1u];
|
||||
tint_symbol_1.inner[2] = value[2u];
|
||||
}
|
||||
|
||||
void tint_symbol_2() {
|
||||
tint_symbol_1.inner = tint_symbol.inner;
|
||||
assign_and_preserve_padding_tint_symbol_1(tint_symbol.inner);
|
||||
}
|
||||
|
||||
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
|
||||
|
||||
@@ -1,8 +1,14 @@
|
||||
#include <metal_stdlib>
|
||||
|
||||
using namespace metal;
|
||||
void assign_and_preserve_padding(device half3x3* const dest, half3x3 value) {
|
||||
(*(dest))[0u] = value[0u];
|
||||
(*(dest))[1u] = value[1u];
|
||||
(*(dest))[2u] = value[2u];
|
||||
}
|
||||
|
||||
kernel void tint_symbol(device half3x3* tint_symbol_1 [[buffer(0)]], const device half3x3* tint_symbol_2 [[buffer(1)]]) {
|
||||
*(tint_symbol_1) = *(tint_symbol_2);
|
||||
assign_and_preserve_padding(tint_symbol_1, *(tint_symbol_2));
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
; SPIR-V
|
||||
; Version: 1.3
|
||||
; Generator: Google Tint Compiler; 0
|
||||
; Bound: 18
|
||||
; Bound: 36
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
OpCapability Float16
|
||||
@@ -15,6 +15,8 @@
|
||||
OpMemberName %in_block 0 "inner"
|
||||
OpName %in "in"
|
||||
OpName %out "out"
|
||||
OpName %assign_and_preserve_padding_out "assign_and_preserve_padding_out"
|
||||
OpName %value "value"
|
||||
OpName %main "main"
|
||||
OpDecorate %in_block Block
|
||||
OpMemberDecorate %in_block 0 Offset 0
|
||||
@@ -33,15 +35,37 @@
|
||||
%in = OpVariable %_ptr_StorageBuffer_in_block StorageBuffer
|
||||
%out = OpVariable %_ptr_StorageBuffer_in_block StorageBuffer
|
||||
%void = OpTypeVoid
|
||||
%8 = OpTypeFunction %void
|
||||
%8 = OpTypeFunction %void %mat3v3half
|
||||
%uint = OpTypeInt 32 0
|
||||
%uint_0 = OpConstant %uint 0
|
||||
%int = OpTypeInt 32 1
|
||||
%16 = OpConstantNull %int
|
||||
%_ptr_StorageBuffer_v3half = OpTypePointer StorageBuffer %v3half
|
||||
%19 = OpConstantNull %uint
|
||||
%int_1 = OpConstant %int 1
|
||||
%uint_1 = OpConstant %uint 1
|
||||
%int_2 = OpConstant %int 2
|
||||
%uint_2 = OpConstant %uint 2
|
||||
%29 = OpTypeFunction %void
|
||||
%_ptr_StorageBuffer_mat3v3half = OpTypePointer StorageBuffer %mat3v3half
|
||||
%main = OpFunction %void None %8
|
||||
%11 = OpLabel
|
||||
%15 = OpAccessChain %_ptr_StorageBuffer_mat3v3half %out %uint_0
|
||||
%16 = OpAccessChain %_ptr_StorageBuffer_mat3v3half %in %uint_0
|
||||
%17 = OpLoad %mat3v3half %16
|
||||
OpStore %15 %17
|
||||
%assign_and_preserve_padding_out = OpFunction %void None %8
|
||||
%value = OpFunctionParameter %mat3v3half
|
||||
%12 = OpLabel
|
||||
%18 = OpAccessChain %_ptr_StorageBuffer_v3half %out %uint_0 %16
|
||||
%20 = OpCompositeExtract %v3half %value 0
|
||||
OpStore %18 %20
|
||||
%22 = OpAccessChain %_ptr_StorageBuffer_v3half %out %uint_0 %int_1
|
||||
%24 = OpCompositeExtract %v3half %value 1
|
||||
OpStore %22 %24
|
||||
%26 = OpAccessChain %_ptr_StorageBuffer_v3half %out %uint_0 %int_2
|
||||
%28 = OpCompositeExtract %v3half %value 2
|
||||
OpStore %26 %28
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%main = OpFunction %void None %29
|
||||
%31 = OpLabel
|
||||
%34 = OpAccessChain %_ptr_StorageBuffer_mat3v3half %in %uint_0
|
||||
%35 = OpLoad %mat3v3half %34
|
||||
%32 = OpFunctionCall %void %assign_and_preserve_padding_out %35
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
|
||||
@@ -8,8 +8,14 @@ layout(binding = 1, std430) buffer tint_symbol_block_ssbo_1 {
|
||||
mat3 inner;
|
||||
} tint_symbol_1;
|
||||
|
||||
void assign_and_preserve_padding_tint_symbol_1(mat3 value) {
|
||||
tint_symbol_1.inner[0] = value[0u];
|
||||
tint_symbol_1.inner[1] = value[1u];
|
||||
tint_symbol_1.inner[2] = value[2u];
|
||||
}
|
||||
|
||||
void tint_symbol_2() {
|
||||
tint_symbol_1.inner = tint_symbol.inner;
|
||||
assign_and_preserve_padding_tint_symbol_1(tint_symbol.inner);
|
||||
}
|
||||
|
||||
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
|
||||
|
||||
@@ -1,8 +1,14 @@
|
||||
#include <metal_stdlib>
|
||||
|
||||
using namespace metal;
|
||||
void assign_and_preserve_padding(device float3x3* const dest, float3x3 value) {
|
||||
(*(dest))[0u] = value[0u];
|
||||
(*(dest))[1u] = value[1u];
|
||||
(*(dest))[2u] = value[2u];
|
||||
}
|
||||
|
||||
kernel void tint_symbol(device float3x3* tint_symbol_1 [[buffer(0)]], const device float3x3* tint_symbol_2 [[buffer(1)]]) {
|
||||
*(tint_symbol_1) = *(tint_symbol_2);
|
||||
assign_and_preserve_padding(tint_symbol_1, *(tint_symbol_2));
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
; SPIR-V
|
||||
; Version: 1.3
|
||||
; Generator: Google Tint Compiler; 0
|
||||
; Bound: 18
|
||||
; Bound: 36
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
OpMemoryModel Logical GLSL450
|
||||
@@ -11,6 +11,8 @@
|
||||
OpMemberName %in_block 0 "inner"
|
||||
OpName %in "in"
|
||||
OpName %out "out"
|
||||
OpName %assign_and_preserve_padding_out "assign_and_preserve_padding_out"
|
||||
OpName %value "value"
|
||||
OpName %main "main"
|
||||
OpDecorate %in_block Block
|
||||
OpMemberDecorate %in_block 0 Offset 0
|
||||
@@ -29,15 +31,37 @@
|
||||
%in = OpVariable %_ptr_StorageBuffer_in_block StorageBuffer
|
||||
%out = OpVariable %_ptr_StorageBuffer_in_block StorageBuffer
|
||||
%void = OpTypeVoid
|
||||
%8 = OpTypeFunction %void
|
||||
%8 = OpTypeFunction %void %mat3v3float
|
||||
%uint = OpTypeInt 32 0
|
||||
%uint_0 = OpConstant %uint 0
|
||||
%int = OpTypeInt 32 1
|
||||
%16 = OpConstantNull %int
|
||||
%_ptr_StorageBuffer_v3float = OpTypePointer StorageBuffer %v3float
|
||||
%19 = OpConstantNull %uint
|
||||
%int_1 = OpConstant %int 1
|
||||
%uint_1 = OpConstant %uint 1
|
||||
%int_2 = OpConstant %int 2
|
||||
%uint_2 = OpConstant %uint 2
|
||||
%29 = OpTypeFunction %void
|
||||
%_ptr_StorageBuffer_mat3v3float = OpTypePointer StorageBuffer %mat3v3float
|
||||
%main = OpFunction %void None %8
|
||||
%11 = OpLabel
|
||||
%15 = OpAccessChain %_ptr_StorageBuffer_mat3v3float %out %uint_0
|
||||
%16 = OpAccessChain %_ptr_StorageBuffer_mat3v3float %in %uint_0
|
||||
%17 = OpLoad %mat3v3float %16
|
||||
OpStore %15 %17
|
||||
%assign_and_preserve_padding_out = OpFunction %void None %8
|
||||
%value = OpFunctionParameter %mat3v3float
|
||||
%12 = OpLabel
|
||||
%18 = OpAccessChain %_ptr_StorageBuffer_v3float %out %uint_0 %16
|
||||
%20 = OpCompositeExtract %v3float %value 0
|
||||
OpStore %18 %20
|
||||
%22 = OpAccessChain %_ptr_StorageBuffer_v3float %out %uint_0 %int_1
|
||||
%24 = OpCompositeExtract %v3float %value 1
|
||||
OpStore %22 %24
|
||||
%26 = OpAccessChain %_ptr_StorageBuffer_v3float %out %uint_0 %int_2
|
||||
%28 = OpCompositeExtract %v3float %value 2
|
||||
OpStore %26 %28
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%main = OpFunction %void None %29
|
||||
%31 = OpLabel
|
||||
%34 = OpAccessChain %_ptr_StorageBuffer_mat3v3float %in %uint_0
|
||||
%35 = OpLoad %mat3v3float %34
|
||||
%32 = OpFunctionCall %void %assign_and_preserve_padding_out %35
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
|
||||
@@ -9,8 +9,15 @@ layout(binding = 1, std430) buffer tint_symbol_block_ssbo_1 {
|
||||
f16mat4x3 inner;
|
||||
} tint_symbol_1;
|
||||
|
||||
void assign_and_preserve_padding_tint_symbol_1(f16mat4x3 value) {
|
||||
tint_symbol_1.inner[0] = value[0u];
|
||||
tint_symbol_1.inner[1] = value[1u];
|
||||
tint_symbol_1.inner[2] = value[2u];
|
||||
tint_symbol_1.inner[3] = value[3u];
|
||||
}
|
||||
|
||||
void tint_symbol_2() {
|
||||
tint_symbol_1.inner = tint_symbol.inner;
|
||||
assign_and_preserve_padding_tint_symbol_1(tint_symbol.inner);
|
||||
}
|
||||
|
||||
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
|
||||
|
||||
@@ -1,8 +1,15 @@
|
||||
#include <metal_stdlib>
|
||||
|
||||
using namespace metal;
|
||||
void assign_and_preserve_padding(device half4x3* const dest, half4x3 value) {
|
||||
(*(dest))[0u] = value[0u];
|
||||
(*(dest))[1u] = value[1u];
|
||||
(*(dest))[2u] = value[2u];
|
||||
(*(dest))[3u] = value[3u];
|
||||
}
|
||||
|
||||
kernel void tint_symbol(device half4x3* tint_symbol_1 [[buffer(0)]], const device half4x3* tint_symbol_2 [[buffer(1)]]) {
|
||||
*(tint_symbol_1) = *(tint_symbol_2);
|
||||
assign_and_preserve_padding(tint_symbol_1, *(tint_symbol_2));
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
; SPIR-V
|
||||
; Version: 1.3
|
||||
; Generator: Google Tint Compiler; 0
|
||||
; Bound: 18
|
||||
; Bound: 40
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
OpCapability Float16
|
||||
@@ -15,6 +15,8 @@
|
||||
OpMemberName %in_block 0 "inner"
|
||||
OpName %in "in"
|
||||
OpName %out "out"
|
||||
OpName %assign_and_preserve_padding_out "assign_and_preserve_padding_out"
|
||||
OpName %value "value"
|
||||
OpName %main "main"
|
||||
OpDecorate %in_block Block
|
||||
OpMemberDecorate %in_block 0 Offset 0
|
||||
@@ -33,15 +35,42 @@
|
||||
%in = OpVariable %_ptr_StorageBuffer_in_block StorageBuffer
|
||||
%out = OpVariable %_ptr_StorageBuffer_in_block StorageBuffer
|
||||
%void = OpTypeVoid
|
||||
%8 = OpTypeFunction %void
|
||||
%8 = OpTypeFunction %void %mat4v3half
|
||||
%uint = OpTypeInt 32 0
|
||||
%uint_0 = OpConstant %uint 0
|
||||
%int = OpTypeInt 32 1
|
||||
%16 = OpConstantNull %int
|
||||
%_ptr_StorageBuffer_v3half = OpTypePointer StorageBuffer %v3half
|
||||
%19 = OpConstantNull %uint
|
||||
%int_1 = OpConstant %int 1
|
||||
%uint_1 = OpConstant %uint 1
|
||||
%int_2 = OpConstant %int 2
|
||||
%uint_2 = OpConstant %uint 2
|
||||
%int_3 = OpConstant %int 3
|
||||
%uint_3 = OpConstant %uint 3
|
||||
%33 = OpTypeFunction %void
|
||||
%_ptr_StorageBuffer_mat4v3half = OpTypePointer StorageBuffer %mat4v3half
|
||||
%main = OpFunction %void None %8
|
||||
%11 = OpLabel
|
||||
%15 = OpAccessChain %_ptr_StorageBuffer_mat4v3half %out %uint_0
|
||||
%16 = OpAccessChain %_ptr_StorageBuffer_mat4v3half %in %uint_0
|
||||
%17 = OpLoad %mat4v3half %16
|
||||
OpStore %15 %17
|
||||
%assign_and_preserve_padding_out = OpFunction %void None %8
|
||||
%value = OpFunctionParameter %mat4v3half
|
||||
%12 = OpLabel
|
||||
%18 = OpAccessChain %_ptr_StorageBuffer_v3half %out %uint_0 %16
|
||||
%20 = OpCompositeExtract %v3half %value 0
|
||||
OpStore %18 %20
|
||||
%22 = OpAccessChain %_ptr_StorageBuffer_v3half %out %uint_0 %int_1
|
||||
%24 = OpCompositeExtract %v3half %value 1
|
||||
OpStore %22 %24
|
||||
%26 = OpAccessChain %_ptr_StorageBuffer_v3half %out %uint_0 %int_2
|
||||
%28 = OpCompositeExtract %v3half %value 2
|
||||
OpStore %26 %28
|
||||
%30 = OpAccessChain %_ptr_StorageBuffer_v3half %out %uint_0 %int_3
|
||||
%32 = OpCompositeExtract %v3half %value 3
|
||||
OpStore %30 %32
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%main = OpFunction %void None %33
|
||||
%35 = OpLabel
|
||||
%38 = OpAccessChain %_ptr_StorageBuffer_mat4v3half %in %uint_0
|
||||
%39 = OpLoad %mat4v3half %38
|
||||
%36 = OpFunctionCall %void %assign_and_preserve_padding_out %39
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
|
||||
@@ -8,8 +8,15 @@ layout(binding = 1, std430) buffer tint_symbol_block_ssbo_1 {
|
||||
mat4x3 inner;
|
||||
} tint_symbol_1;
|
||||
|
||||
void assign_and_preserve_padding_tint_symbol_1(mat4x3 value) {
|
||||
tint_symbol_1.inner[0] = value[0u];
|
||||
tint_symbol_1.inner[1] = value[1u];
|
||||
tint_symbol_1.inner[2] = value[2u];
|
||||
tint_symbol_1.inner[3] = value[3u];
|
||||
}
|
||||
|
||||
void tint_symbol_2() {
|
||||
tint_symbol_1.inner = tint_symbol.inner;
|
||||
assign_and_preserve_padding_tint_symbol_1(tint_symbol.inner);
|
||||
}
|
||||
|
||||
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
|
||||
|
||||
@@ -1,8 +1,15 @@
|
||||
#include <metal_stdlib>
|
||||
|
||||
using namespace metal;
|
||||
void assign_and_preserve_padding(device float4x3* const dest, float4x3 value) {
|
||||
(*(dest))[0u] = value[0u];
|
||||
(*(dest))[1u] = value[1u];
|
||||
(*(dest))[2u] = value[2u];
|
||||
(*(dest))[3u] = value[3u];
|
||||
}
|
||||
|
||||
kernel void tint_symbol(device float4x3* tint_symbol_1 [[buffer(0)]], const device float4x3* tint_symbol_2 [[buffer(1)]]) {
|
||||
*(tint_symbol_1) = *(tint_symbol_2);
|
||||
assign_and_preserve_padding(tint_symbol_1, *(tint_symbol_2));
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
; SPIR-V
|
||||
; Version: 1.3
|
||||
; Generator: Google Tint Compiler; 0
|
||||
; Bound: 18
|
||||
; Bound: 40
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
OpMemoryModel Logical GLSL450
|
||||
@@ -11,6 +11,8 @@
|
||||
OpMemberName %in_block 0 "inner"
|
||||
OpName %in "in"
|
||||
OpName %out "out"
|
||||
OpName %assign_and_preserve_padding_out "assign_and_preserve_padding_out"
|
||||
OpName %value "value"
|
||||
OpName %main "main"
|
||||
OpDecorate %in_block Block
|
||||
OpMemberDecorate %in_block 0 Offset 0
|
||||
@@ -29,15 +31,42 @@
|
||||
%in = OpVariable %_ptr_StorageBuffer_in_block StorageBuffer
|
||||
%out = OpVariable %_ptr_StorageBuffer_in_block StorageBuffer
|
||||
%void = OpTypeVoid
|
||||
%8 = OpTypeFunction %void
|
||||
%8 = OpTypeFunction %void %mat4v3float
|
||||
%uint = OpTypeInt 32 0
|
||||
%uint_0 = OpConstant %uint 0
|
||||
%int = OpTypeInt 32 1
|
||||
%16 = OpConstantNull %int
|
||||
%_ptr_StorageBuffer_v3float = OpTypePointer StorageBuffer %v3float
|
||||
%19 = OpConstantNull %uint
|
||||
%int_1 = OpConstant %int 1
|
||||
%uint_1 = OpConstant %uint 1
|
||||
%int_2 = OpConstant %int 2
|
||||
%uint_2 = OpConstant %uint 2
|
||||
%int_3 = OpConstant %int 3
|
||||
%uint_3 = OpConstant %uint 3
|
||||
%33 = OpTypeFunction %void
|
||||
%_ptr_StorageBuffer_mat4v3float = OpTypePointer StorageBuffer %mat4v3float
|
||||
%main = OpFunction %void None %8
|
||||
%11 = OpLabel
|
||||
%15 = OpAccessChain %_ptr_StorageBuffer_mat4v3float %out %uint_0
|
||||
%16 = OpAccessChain %_ptr_StorageBuffer_mat4v3float %in %uint_0
|
||||
%17 = OpLoad %mat4v3float %16
|
||||
OpStore %15 %17
|
||||
%assign_and_preserve_padding_out = OpFunction %void None %8
|
||||
%value = OpFunctionParameter %mat4v3float
|
||||
%12 = OpLabel
|
||||
%18 = OpAccessChain %_ptr_StorageBuffer_v3float %out %uint_0 %16
|
||||
%20 = OpCompositeExtract %v3float %value 0
|
||||
OpStore %18 %20
|
||||
%22 = OpAccessChain %_ptr_StorageBuffer_v3float %out %uint_0 %int_1
|
||||
%24 = OpCompositeExtract %v3float %value 1
|
||||
OpStore %22 %24
|
||||
%26 = OpAccessChain %_ptr_StorageBuffer_v3float %out %uint_0 %int_2
|
||||
%28 = OpCompositeExtract %v3float %value 2
|
||||
OpStore %26 %28
|
||||
%30 = OpAccessChain %_ptr_StorageBuffer_v3float %out %uint_0 %int_3
|
||||
%32 = OpCompositeExtract %v3float %value 3
|
||||
OpStore %30 %32
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%main = OpFunction %void None %33
|
||||
%35 = OpLabel
|
||||
%38 = OpAccessChain %_ptr_StorageBuffer_mat4v3float %in %uint_0
|
||||
%39 = OpLoad %mat4v3float %38
|
||||
%36 = OpFunctionCall %void %assign_and_preserve_padding_out %39
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
|
||||
Reference in New Issue
Block a user