mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-09 21:47:47 +00:00
GLSL: Change Add[Spirv]BlockAttribute to support GLSL
Modify the AddSpirvBlockAttribute transform to fix top-level structure access of uniform, storage and push-constant buffers for use in the GLSL backend. The small change to the transform makes the transform wrap host-sharable buffers, if they're also used as a non-host-sharable structure. Also rename the transform to AddBlockAttrbibute in order to reflect its wider applicability. Change-Id: Ib2bf4ebf6bce72790791dbae9387032be765e4b9 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/101061 Reviewed-by: Ben Clayton <bclayton@google.com> Kokoro: Kokoro <noreply+kokoro@google.com> Commit-Queue: Stephen White <senorblanco@chromium.org>
This commit is contained in:
committed by
Dawn LUCI CQ
parent
822de46c74
commit
863d9edf59
@@ -10,13 +10,14 @@ struct S {
|
||||
|
||||
ivec4 src_private[4] = ivec4[4](ivec4(0, 0, 0, 0), ivec4(0, 0, 0, 0), ivec4(0, 0, 0, 0), ivec4(0, 0, 0, 0));
|
||||
shared ivec4 src_workgroup[4];
|
||||
layout(binding = 0) uniform S_1 {
|
||||
ivec4 arr[4];
|
||||
layout(binding = 0) uniform src_uniform_block_ubo {
|
||||
S inner;
|
||||
} src_uniform;
|
||||
|
||||
layout(binding = 1, std430) buffer S_2 {
|
||||
ivec4 arr[4];
|
||||
layout(binding = 1, std430) buffer src_uniform_block_ssbo {
|
||||
S inner;
|
||||
} src_storage;
|
||||
|
||||
ivec4[4] ret_arr() {
|
||||
ivec4 tint_symbol_1[4] = ivec4[4](ivec4(0), ivec4(0), ivec4(0), ivec4(0));
|
||||
return tint_symbol_1;
|
||||
@@ -41,8 +42,8 @@ void foo(ivec4 src_param[4]) {
|
||||
dst = src_workgroup;
|
||||
S tint_symbol = ret_struct_arr();
|
||||
dst = tint_symbol.arr;
|
||||
dst = src_uniform.arr;
|
||||
dst = src_storage.arr;
|
||||
dst = src_uniform.inner.arr;
|
||||
dst = src_storage.inner.arr;
|
||||
int dst_nested[4][3][2] = int[4][3][2](int[3][2](int[2](0, 0), int[2](0, 0), int[2](0, 0)), int[3][2](int[2](0, 0), int[2](0, 0), int[2](0, 0)), int[3][2](int[2](0, 0), int[2](0, 0), int[2](0, 0)), int[3][2](int[2](0, 0), int[2](0, 0), int[2](0, 0)));
|
||||
int src_nested[4][3][2] = int[4][3][2](int[3][2](int[2](0, 0), int[2](0, 0), int[2](0, 0)), int[3][2](int[2](0, 0), int[2](0, 0), int[2](0, 0)), int[3][2](int[2](0, 0), int[2](0, 0), int[2](0, 0)), int[3][2](int[2](0, 0), int[2](0, 0), int[2](0, 0)));
|
||||
dst_nested = src_nested;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
; SPIR-V
|
||||
; Version: 1.3
|
||||
; Generator: Google Tint Compiler; 0
|
||||
; Bound: 64
|
||||
; Bound: 65
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
OpMemoryModel Logical GLSL450
|
||||
@@ -9,6 +9,8 @@
|
||||
OpExecutionMode %unused_entry_point LocalSize 1 1 1
|
||||
OpName %src_private "src_private"
|
||||
OpName %src_workgroup "src_workgroup"
|
||||
OpName %src_uniform_block "src_uniform_block"
|
||||
OpMemberName %src_uniform_block 0 "inner"
|
||||
OpName %S "S"
|
||||
OpMemberName %S 0 "arr"
|
||||
OpName %src_uniform "src_uniform"
|
||||
@@ -23,7 +25,8 @@
|
||||
OpName %dst_nested "dst_nested"
|
||||
OpName %src_nested "src_nested"
|
||||
OpDecorate %_arr_v4int_uint_4 ArrayStride 16
|
||||
OpDecorate %S Block
|
||||
OpDecorate %src_uniform_block Block
|
||||
OpMemberDecorate %src_uniform_block 0 Offset 0
|
||||
OpMemberDecorate %S 0 Offset 0
|
||||
OpDecorate %src_uniform NonWritable
|
||||
OpDecorate %src_uniform DescriptorSet 0
|
||||
@@ -44,24 +47,25 @@
|
||||
%_ptr_Workgroup__arr_v4int_uint_4 = OpTypePointer Workgroup %_arr_v4int_uint_4
|
||||
%src_workgroup = OpVariable %_ptr_Workgroup__arr_v4int_uint_4 Workgroup
|
||||
%S = OpTypeStruct %_arr_v4int_uint_4
|
||||
%_ptr_Uniform_S = OpTypePointer Uniform %S
|
||||
%src_uniform = OpVariable %_ptr_Uniform_S Uniform
|
||||
%_ptr_StorageBuffer_S = OpTypePointer StorageBuffer %S
|
||||
%src_storage = OpVariable %_ptr_StorageBuffer_S StorageBuffer
|
||||
%src_uniform_block = OpTypeStruct %S
|
||||
%_ptr_Uniform_src_uniform_block = OpTypePointer Uniform %src_uniform_block
|
||||
%src_uniform = OpVariable %_ptr_Uniform_src_uniform_block Uniform
|
||||
%_ptr_StorageBuffer_src_uniform_block = OpTypePointer StorageBuffer %src_uniform_block
|
||||
%src_storage = OpVariable %_ptr_StorageBuffer_src_uniform_block StorageBuffer
|
||||
%void = OpTypeVoid
|
||||
%16 = OpTypeFunction %void
|
||||
%20 = OpTypeFunction %_arr_v4int_uint_4
|
||||
%23 = OpTypeFunction %S
|
||||
%26 = OpConstantNull %S
|
||||
%27 = OpTypeFunction %void %_arr_v4int_uint_4
|
||||
%17 = OpTypeFunction %void
|
||||
%21 = OpTypeFunction %_arr_v4int_uint_4
|
||||
%24 = OpTypeFunction %S
|
||||
%27 = OpConstantNull %S
|
||||
%28 = OpTypeFunction %void %_arr_v4int_uint_4
|
||||
%_ptr_Function__arr_v4int_uint_4 = OpTypePointer Function %_arr_v4int_uint_4
|
||||
%int_1 = OpConstant %int 1
|
||||
%35 = OpConstantComposite %v4int %int_1 %int_1 %int_1 %int_1
|
||||
%36 = OpConstantComposite %v4int %int_1 %int_1 %int_1 %int_1
|
||||
%int_2 = OpConstant %int 2
|
||||
%37 = OpConstantComposite %v4int %int_2 %int_2 %int_2 %int_2
|
||||
%38 = OpConstantComposite %v4int %int_2 %int_2 %int_2 %int_2
|
||||
%int_3 = OpConstant %int 3
|
||||
%39 = OpConstantComposite %v4int %int_3 %int_3 %int_3 %int_3
|
||||
%40 = OpConstantComposite %_arr_v4int_uint_4 %35 %37 %39 %39
|
||||
%40 = OpConstantComposite %v4int %int_3 %int_3 %int_3 %int_3
|
||||
%41 = OpConstantComposite %_arr_v4int_uint_4 %36 %38 %40 %40
|
||||
%uint_0 = OpConstant %uint 0
|
||||
%_ptr_Uniform__arr_v4int_uint_4 = OpTypePointer Uniform %_arr_v4int_uint_4
|
||||
%_ptr_StorageBuffer__arr_v4int_uint_4 = OpTypePointer StorageBuffer %_arr_v4int_uint_4
|
||||
@@ -71,47 +75,47 @@
|
||||
%_arr__arr_int_uint_2_uint_3 = OpTypeArray %_arr_int_uint_2 %uint_3
|
||||
%_arr__arr__arr_int_uint_2_uint_3_uint_4 = OpTypeArray %_arr__arr_int_uint_2_uint_3 %uint_4
|
||||
%_ptr_Function__arr__arr__arr_int_uint_2_uint_3_uint_4 = OpTypePointer Function %_arr__arr__arr_int_uint_2_uint_3_uint_4
|
||||
%61 = OpConstantNull %_arr__arr__arr_int_uint_2_uint_3_uint_4
|
||||
%unused_entry_point = OpFunction %void None %16
|
||||
%19 = OpLabel
|
||||
%62 = OpConstantNull %_arr__arr__arr_int_uint_2_uint_3_uint_4
|
||||
%unused_entry_point = OpFunction %void None %17
|
||||
%20 = OpLabel
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%ret_arr = OpFunction %_arr_v4int_uint_4 None %20
|
||||
%22 = OpLabel
|
||||
%ret_arr = OpFunction %_arr_v4int_uint_4 None %21
|
||||
%23 = OpLabel
|
||||
OpReturnValue %8
|
||||
OpFunctionEnd
|
||||
%ret_struct_arr = OpFunction %S None %23
|
||||
%25 = OpLabel
|
||||
OpReturnValue %26
|
||||
%ret_struct_arr = OpFunction %S None %24
|
||||
%26 = OpLabel
|
||||
OpReturnValue %27
|
||||
OpFunctionEnd
|
||||
%foo = OpFunction %void None %27
|
||||
%foo = OpFunction %void None %28
|
||||
%src_param = OpFunctionParameter %_arr_v4int_uint_4
|
||||
%30 = OpLabel
|
||||
%31 = OpLabel
|
||||
%src_function = OpVariable %_ptr_Function__arr_v4int_uint_4 Function %8
|
||||
%dst = OpVariable %_ptr_Function__arr_v4int_uint_4 Function %8
|
||||
%dst_nested = OpVariable %_ptr_Function__arr__arr__arr_int_uint_2_uint_3_uint_4 Function %61
|
||||
%src_nested = OpVariable %_ptr_Function__arr__arr__arr_int_uint_2_uint_3_uint_4 Function %61
|
||||
OpStore %dst %40
|
||||
OpStore %dst %src_param
|
||||
%41 = OpFunctionCall %_arr_v4int_uint_4 %ret_arr
|
||||
%dst_nested = OpVariable %_ptr_Function__arr__arr__arr_int_uint_2_uint_3_uint_4 Function %62
|
||||
%src_nested = OpVariable %_ptr_Function__arr__arr__arr_int_uint_2_uint_3_uint_4 Function %62
|
||||
OpStore %dst %41
|
||||
OpStore %dst %8
|
||||
%42 = OpLoad %_arr_v4int_uint_4 %src_function
|
||||
OpStore %dst %src_param
|
||||
%42 = OpFunctionCall %_arr_v4int_uint_4 %ret_arr
|
||||
OpStore %dst %42
|
||||
%43 = OpLoad %_arr_v4int_uint_4 %src_private
|
||||
OpStore %dst %8
|
||||
%43 = OpLoad %_arr_v4int_uint_4 %src_function
|
||||
OpStore %dst %43
|
||||
%44 = OpLoad %_arr_v4int_uint_4 %src_workgroup
|
||||
%44 = OpLoad %_arr_v4int_uint_4 %src_private
|
||||
OpStore %dst %44
|
||||
%45 = OpFunctionCall %S %ret_struct_arr
|
||||
%46 = OpCompositeExtract %_arr_v4int_uint_4 %45 0
|
||||
OpStore %dst %46
|
||||
%49 = OpAccessChain %_ptr_Uniform__arr_v4int_uint_4 %src_uniform %uint_0
|
||||
%50 = OpLoad %_arr_v4int_uint_4 %49
|
||||
OpStore %dst %50
|
||||
%52 = OpAccessChain %_ptr_StorageBuffer__arr_v4int_uint_4 %src_storage %uint_0
|
||||
%53 = OpLoad %_arr_v4int_uint_4 %52
|
||||
OpStore %dst %53
|
||||
%63 = OpLoad %_arr__arr__arr_int_uint_2_uint_3_uint_4 %src_nested
|
||||
OpStore %dst_nested %63
|
||||
%45 = OpLoad %_arr_v4int_uint_4 %src_workgroup
|
||||
OpStore %dst %45
|
||||
%46 = OpFunctionCall %S %ret_struct_arr
|
||||
%47 = OpCompositeExtract %_arr_v4int_uint_4 %46 0
|
||||
OpStore %dst %47
|
||||
%50 = OpAccessChain %_ptr_Uniform__arr_v4int_uint_4 %src_uniform %uint_0 %uint_0
|
||||
%51 = OpLoad %_arr_v4int_uint_4 %50
|
||||
OpStore %dst %51
|
||||
%53 = OpAccessChain %_ptr_StorageBuffer__arr_v4int_uint_4 %src_storage %uint_0 %uint_0
|
||||
%54 = OpLoad %_arr_v4int_uint_4 %53
|
||||
OpStore %dst %54
|
||||
%64 = OpLoad %_arr__arr__arr_int_uint_2_uint_3_uint_4 %src_nested
|
||||
OpStore %dst_nested %64
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
|
||||
@@ -10,13 +10,14 @@ struct S {
|
||||
|
||||
ivec4 src_private[4] = ivec4[4](ivec4(0, 0, 0, 0), ivec4(0, 0, 0, 0), ivec4(0, 0, 0, 0), ivec4(0, 0, 0, 0));
|
||||
shared ivec4 src_workgroup[4];
|
||||
layout(binding = 0) uniform S_1 {
|
||||
ivec4 arr[4];
|
||||
layout(binding = 0) uniform src_uniform_block_ubo {
|
||||
S inner;
|
||||
} src_uniform;
|
||||
|
||||
layout(binding = 1, std430) buffer S_2 {
|
||||
ivec4 arr[4];
|
||||
layout(binding = 1, std430) buffer src_uniform_block_ssbo {
|
||||
S inner;
|
||||
} src_storage;
|
||||
|
||||
ivec4 dst[4] = ivec4[4](ivec4(0, 0, 0, 0), ivec4(0, 0, 0, 0), ivec4(0, 0, 0, 0), ivec4(0, 0, 0, 0));
|
||||
int dst_nested[4][3][2] = int[4][3][2](int[3][2](int[2](0, 0), int[2](0, 0), int[2](0, 0)), int[3][2](int[2](0, 0), int[2](0, 0), int[2](0, 0)), int[3][2](int[2](0, 0), int[2](0, 0), int[2](0, 0)), int[3][2](int[2](0, 0), int[2](0, 0), int[2](0, 0)));
|
||||
ivec4[4] ret_arr() {
|
||||
@@ -42,8 +43,8 @@ void foo(ivec4 src_param[4]) {
|
||||
dst = src_workgroup;
|
||||
S tint_symbol = ret_struct_arr();
|
||||
dst = tint_symbol.arr;
|
||||
dst = src_uniform.arr;
|
||||
dst = src_storage.arr;
|
||||
dst = src_uniform.inner.arr;
|
||||
dst = src_storage.inner.arr;
|
||||
int src_nested[4][3][2] = int[4][3][2](int[3][2](int[2](0, 0), int[2](0, 0), int[2](0, 0)), int[3][2](int[2](0, 0), int[2](0, 0), int[2](0, 0)), int[3][2](int[2](0, 0), int[2](0, 0), int[2](0, 0)), int[3][2](int[2](0, 0), int[2](0, 0), int[2](0, 0)));
|
||||
dst_nested = src_nested;
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
; SPIR-V
|
||||
; Version: 1.3
|
||||
; Generator: Google Tint Compiler; 0
|
||||
; Bound: 65
|
||||
; Bound: 66
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
OpMemoryModel Logical GLSL450
|
||||
@@ -9,6 +9,8 @@
|
||||
OpExecutionMode %unused_entry_point LocalSize 1 1 1
|
||||
OpName %src_private "src_private"
|
||||
OpName %src_workgroup "src_workgroup"
|
||||
OpName %src_uniform_block "src_uniform_block"
|
||||
OpMemberName %src_uniform_block 0 "inner"
|
||||
OpName %S "S"
|
||||
OpMemberName %S 0 "arr"
|
||||
OpName %src_uniform "src_uniform"
|
||||
@@ -23,7 +25,8 @@
|
||||
OpName %src_function "src_function"
|
||||
OpName %src_nested "src_nested"
|
||||
OpDecorate %_arr_v4int_uint_4 ArrayStride 16
|
||||
OpDecorate %S Block
|
||||
OpDecorate %src_uniform_block Block
|
||||
OpMemberDecorate %src_uniform_block 0 Offset 0
|
||||
OpMemberDecorate %S 0 Offset 0
|
||||
OpDecorate %src_uniform NonWritable
|
||||
OpDecorate %src_uniform DescriptorSet 0
|
||||
@@ -44,10 +47,11 @@
|
||||
%_ptr_Workgroup__arr_v4int_uint_4 = OpTypePointer Workgroup %_arr_v4int_uint_4
|
||||
%src_workgroup = OpVariable %_ptr_Workgroup__arr_v4int_uint_4 Workgroup
|
||||
%S = OpTypeStruct %_arr_v4int_uint_4
|
||||
%_ptr_Uniform_S = OpTypePointer Uniform %S
|
||||
%src_uniform = OpVariable %_ptr_Uniform_S Uniform
|
||||
%_ptr_StorageBuffer_S = OpTypePointer StorageBuffer %S
|
||||
%src_storage = OpVariable %_ptr_StorageBuffer_S StorageBuffer
|
||||
%src_uniform_block = OpTypeStruct %S
|
||||
%_ptr_Uniform_src_uniform_block = OpTypePointer Uniform %src_uniform_block
|
||||
%src_uniform = OpVariable %_ptr_Uniform_src_uniform_block Uniform
|
||||
%_ptr_StorageBuffer_src_uniform_block = OpTypePointer StorageBuffer %src_uniform_block
|
||||
%src_storage = OpVariable %_ptr_StorageBuffer_src_uniform_block StorageBuffer
|
||||
%dst = OpVariable %_ptr_Private__arr_v4int_uint_4 Private %8
|
||||
%uint_2 = OpConstant %uint 2
|
||||
%_arr_int_uint_2 = OpTypeArray %int %uint_2
|
||||
@@ -55,64 +59,64 @@
|
||||
%_arr__arr_int_uint_2_uint_3 = OpTypeArray %_arr_int_uint_2 %uint_3
|
||||
%_arr__arr__arr_int_uint_2_uint_3_uint_4 = OpTypeArray %_arr__arr_int_uint_2_uint_3 %uint_4
|
||||
%_ptr_Private__arr__arr__arr_int_uint_2_uint_3_uint_4 = OpTypePointer Private %_arr__arr__arr_int_uint_2_uint_3_uint_4
|
||||
%24 = OpConstantNull %_arr__arr__arr_int_uint_2_uint_3_uint_4
|
||||
%dst_nested = OpVariable %_ptr_Private__arr__arr__arr_int_uint_2_uint_3_uint_4 Private %24
|
||||
%25 = OpConstantNull %_arr__arr__arr_int_uint_2_uint_3_uint_4
|
||||
%dst_nested = OpVariable %_ptr_Private__arr__arr__arr_int_uint_2_uint_3_uint_4 Private %25
|
||||
%void = OpTypeVoid
|
||||
%25 = OpTypeFunction %void
|
||||
%29 = OpTypeFunction %_arr_v4int_uint_4
|
||||
%32 = OpTypeFunction %S
|
||||
%35 = OpConstantNull %S
|
||||
%36 = OpTypeFunction %void %_arr_v4int_uint_4
|
||||
%26 = OpTypeFunction %void
|
||||
%30 = OpTypeFunction %_arr_v4int_uint_4
|
||||
%33 = OpTypeFunction %S
|
||||
%36 = OpConstantNull %S
|
||||
%37 = OpTypeFunction %void %_arr_v4int_uint_4
|
||||
%_ptr_Function__arr_v4int_uint_4 = OpTypePointer Function %_arr_v4int_uint_4
|
||||
%int_1 = OpConstant %int 1
|
||||
%43 = OpConstantComposite %v4int %int_1 %int_1 %int_1 %int_1
|
||||
%44 = OpConstantComposite %v4int %int_1 %int_1 %int_1 %int_1
|
||||
%int_2 = OpConstant %int 2
|
||||
%45 = OpConstantComposite %v4int %int_2 %int_2 %int_2 %int_2
|
||||
%46 = OpConstantComposite %v4int %int_2 %int_2 %int_2 %int_2
|
||||
%int_3 = OpConstant %int 3
|
||||
%47 = OpConstantComposite %v4int %int_3 %int_3 %int_3 %int_3
|
||||
%48 = OpConstantComposite %_arr_v4int_uint_4 %43 %45 %47 %47
|
||||
%48 = OpConstantComposite %v4int %int_3 %int_3 %int_3 %int_3
|
||||
%49 = OpConstantComposite %_arr_v4int_uint_4 %44 %46 %48 %48
|
||||
%uint_0 = OpConstant %uint 0
|
||||
%_ptr_Uniform__arr_v4int_uint_4 = OpTypePointer Uniform %_arr_v4int_uint_4
|
||||
%_ptr_StorageBuffer__arr_v4int_uint_4 = OpTypePointer StorageBuffer %_arr_v4int_uint_4
|
||||
%_ptr_Function__arr__arr__arr_int_uint_2_uint_3_uint_4 = OpTypePointer Function %_arr__arr__arr_int_uint_2_uint_3_uint_4
|
||||
%unused_entry_point = OpFunction %void None %25
|
||||
%28 = OpLabel
|
||||
%unused_entry_point = OpFunction %void None %26
|
||||
%29 = OpLabel
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%ret_arr = OpFunction %_arr_v4int_uint_4 None %29
|
||||
%31 = OpLabel
|
||||
%ret_arr = OpFunction %_arr_v4int_uint_4 None %30
|
||||
%32 = OpLabel
|
||||
OpReturnValue %8
|
||||
OpFunctionEnd
|
||||
%ret_struct_arr = OpFunction %S None %32
|
||||
%34 = OpLabel
|
||||
OpReturnValue %35
|
||||
%ret_struct_arr = OpFunction %S None %33
|
||||
%35 = OpLabel
|
||||
OpReturnValue %36
|
||||
OpFunctionEnd
|
||||
%foo = OpFunction %void None %36
|
||||
%foo = OpFunction %void None %37
|
||||
%src_param = OpFunctionParameter %_arr_v4int_uint_4
|
||||
%39 = OpLabel
|
||||
%40 = OpLabel
|
||||
%src_function = OpVariable %_ptr_Function__arr_v4int_uint_4 Function %8
|
||||
%src_nested = OpVariable %_ptr_Function__arr__arr__arr_int_uint_2_uint_3_uint_4 Function %24
|
||||
OpStore %dst %48
|
||||
OpStore %dst %src_param
|
||||
%49 = OpFunctionCall %_arr_v4int_uint_4 %ret_arr
|
||||
%src_nested = OpVariable %_ptr_Function__arr__arr__arr_int_uint_2_uint_3_uint_4 Function %25
|
||||
OpStore %dst %49
|
||||
OpStore %dst %8
|
||||
%50 = OpLoad %_arr_v4int_uint_4 %src_function
|
||||
OpStore %dst %src_param
|
||||
%50 = OpFunctionCall %_arr_v4int_uint_4 %ret_arr
|
||||
OpStore %dst %50
|
||||
%51 = OpLoad %_arr_v4int_uint_4 %src_private
|
||||
OpStore %dst %8
|
||||
%51 = OpLoad %_arr_v4int_uint_4 %src_function
|
||||
OpStore %dst %51
|
||||
%52 = OpLoad %_arr_v4int_uint_4 %src_workgroup
|
||||
%52 = OpLoad %_arr_v4int_uint_4 %src_private
|
||||
OpStore %dst %52
|
||||
%53 = OpFunctionCall %S %ret_struct_arr
|
||||
%54 = OpCompositeExtract %_arr_v4int_uint_4 %53 0
|
||||
OpStore %dst %54
|
||||
%57 = OpAccessChain %_ptr_Uniform__arr_v4int_uint_4 %src_uniform %uint_0
|
||||
%58 = OpLoad %_arr_v4int_uint_4 %57
|
||||
OpStore %dst %58
|
||||
%60 = OpAccessChain %_ptr_StorageBuffer__arr_v4int_uint_4 %src_storage %uint_0
|
||||
%61 = OpLoad %_arr_v4int_uint_4 %60
|
||||
OpStore %dst %61
|
||||
%64 = OpLoad %_arr__arr__arr_int_uint_2_uint_3_uint_4 %src_nested
|
||||
OpStore %dst_nested %64
|
||||
%53 = OpLoad %_arr_v4int_uint_4 %src_workgroup
|
||||
OpStore %dst %53
|
||||
%54 = OpFunctionCall %S %ret_struct_arr
|
||||
%55 = OpCompositeExtract %_arr_v4int_uint_4 %54 0
|
||||
OpStore %dst %55
|
||||
%58 = OpAccessChain %_ptr_Uniform__arr_v4int_uint_4 %src_uniform %uint_0 %uint_0
|
||||
%59 = OpLoad %_arr_v4int_uint_4 %58
|
||||
OpStore %dst %59
|
||||
%61 = OpAccessChain %_ptr_StorageBuffer__arr_v4int_uint_4 %src_storage %uint_0 %uint_0
|
||||
%62 = OpLoad %_arr_v4int_uint_4 %61
|
||||
OpStore %dst %62
|
||||
%65 = OpLoad %_arr__arr__arr_int_uint_2_uint_3_uint_4 %src_nested
|
||||
OpStore %dst_nested %65
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
|
||||
@@ -8,25 +8,24 @@ struct S {
|
||||
ivec4 arr[4];
|
||||
};
|
||||
|
||||
struct S_nested {
|
||||
int arr[4][3][2];
|
||||
};
|
||||
|
||||
ivec4 src_private[4] = ivec4[4](ivec4(0, 0, 0, 0), ivec4(0, 0, 0, 0), ivec4(0, 0, 0, 0), ivec4(0, 0, 0, 0));
|
||||
shared ivec4 src_workgroup[4];
|
||||
layout(binding = 0) uniform S_1 {
|
||||
ivec4 arr[4];
|
||||
layout(binding = 0) uniform src_uniform_block_ubo {
|
||||
S inner;
|
||||
} src_uniform;
|
||||
|
||||
layout(binding = 1, std430) buffer S_2 {
|
||||
ivec4 arr[4];
|
||||
layout(binding = 1, std430) buffer src_uniform_block_ssbo {
|
||||
S inner;
|
||||
} src_storage;
|
||||
layout(binding = 2, std430) buffer S_3 {
|
||||
ivec4 arr[4];
|
||||
|
||||
layout(binding = 2, std430) buffer src_uniform_block_ssbo_1 {
|
||||
S inner;
|
||||
} dst;
|
||||
layout(binding = 3, std430) buffer S_nested_1 {
|
||||
|
||||
layout(binding = 3, std430) buffer S_nested_ssbo {
|
||||
int arr[4][3][2];
|
||||
} dst_nested;
|
||||
|
||||
ivec4[4] ret_arr() {
|
||||
ivec4 tint_symbol_2[4] = ivec4[4](ivec4(0), ivec4(0), ivec4(0), ivec4(0));
|
||||
return tint_symbol_2;
|
||||
@@ -40,19 +39,19 @@ S ret_struct_arr() {
|
||||
void foo(ivec4 src_param[4]) {
|
||||
ivec4 src_function[4] = ivec4[4](ivec4(0, 0, 0, 0), ivec4(0, 0, 0, 0), ivec4(0, 0, 0, 0), ivec4(0, 0, 0, 0));
|
||||
ivec4 tint_symbol_4[4] = ivec4[4](ivec4(1), ivec4(2), ivec4(3), ivec4(3));
|
||||
dst.arr = tint_symbol_4;
|
||||
dst.arr = src_param;
|
||||
dst.inner.arr = tint_symbol_4;
|
||||
dst.inner.arr = src_param;
|
||||
ivec4 tint_symbol[4] = ret_arr();
|
||||
dst.arr = tint_symbol;
|
||||
dst.inner.arr = tint_symbol;
|
||||
ivec4 src_let[4] = ivec4[4](ivec4(0), ivec4(0), ivec4(0), ivec4(0));
|
||||
dst.arr = src_let;
|
||||
dst.arr = src_function;
|
||||
dst.arr = src_private;
|
||||
dst.arr = src_workgroup;
|
||||
dst.inner.arr = src_let;
|
||||
dst.inner.arr = src_function;
|
||||
dst.inner.arr = src_private;
|
||||
dst.inner.arr = src_workgroup;
|
||||
S tint_symbol_1 = ret_struct_arr();
|
||||
dst.arr = tint_symbol_1.arr;
|
||||
dst.arr = src_uniform.arr;
|
||||
dst.arr = src_storage.arr;
|
||||
dst.inner.arr = tint_symbol_1.arr;
|
||||
dst.inner.arr = src_uniform.inner.arr;
|
||||
dst.inner.arr = src_storage.inner.arr;
|
||||
int src_nested[4][3][2] = int[4][3][2](int[3][2](int[2](0, 0), int[2](0, 0), int[2](0, 0)), int[3][2](int[2](0, 0), int[2](0, 0), int[2](0, 0)), int[3][2](int[2](0, 0), int[2](0, 0), int[2](0, 0)), int[3][2](int[2](0, 0), int[2](0, 0), int[2](0, 0)));
|
||||
dst_nested.arr = src_nested;
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
; SPIR-V
|
||||
; Version: 1.3
|
||||
; Generator: Google Tint Compiler; 0
|
||||
; Bound: 78
|
||||
; Bound: 79
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
OpMemoryModel Logical GLSL450
|
||||
@@ -9,6 +9,8 @@
|
||||
OpExecutionMode %unused_entry_point LocalSize 1 1 1
|
||||
OpName %src_private "src_private"
|
||||
OpName %src_workgroup "src_workgroup"
|
||||
OpName %src_uniform_block "src_uniform_block"
|
||||
OpMemberName %src_uniform_block 0 "inner"
|
||||
OpName %S "S"
|
||||
OpMemberName %S 0 "arr"
|
||||
OpName %src_uniform "src_uniform"
|
||||
@@ -25,7 +27,8 @@
|
||||
OpName %src_function "src_function"
|
||||
OpName %src_nested "src_nested"
|
||||
OpDecorate %_arr_v4int_uint_4 ArrayStride 16
|
||||
OpDecorate %S Block
|
||||
OpDecorate %src_uniform_block Block
|
||||
OpMemberDecorate %src_uniform_block 0 Offset 0
|
||||
OpMemberDecorate %S 0 Offset 0
|
||||
OpDecorate %src_uniform NonWritable
|
||||
OpDecorate %src_uniform DescriptorSet 0
|
||||
@@ -52,11 +55,12 @@
|
||||
%_ptr_Workgroup__arr_v4int_uint_4 = OpTypePointer Workgroup %_arr_v4int_uint_4
|
||||
%src_workgroup = OpVariable %_ptr_Workgroup__arr_v4int_uint_4 Workgroup
|
||||
%S = OpTypeStruct %_arr_v4int_uint_4
|
||||
%_ptr_Uniform_S = OpTypePointer Uniform %S
|
||||
%src_uniform = OpVariable %_ptr_Uniform_S Uniform
|
||||
%_ptr_StorageBuffer_S = OpTypePointer StorageBuffer %S
|
||||
%src_storage = OpVariable %_ptr_StorageBuffer_S StorageBuffer
|
||||
%dst = OpVariable %_ptr_StorageBuffer_S StorageBuffer
|
||||
%src_uniform_block = OpTypeStruct %S
|
||||
%_ptr_Uniform_src_uniform_block = OpTypePointer Uniform %src_uniform_block
|
||||
%src_uniform = OpVariable %_ptr_Uniform_src_uniform_block Uniform
|
||||
%_ptr_StorageBuffer_src_uniform_block = OpTypePointer StorageBuffer %src_uniform_block
|
||||
%src_storage = OpVariable %_ptr_StorageBuffer_src_uniform_block StorageBuffer
|
||||
%dst = OpVariable %_ptr_StorageBuffer_src_uniform_block StorageBuffer
|
||||
%uint_2 = OpConstant %uint 2
|
||||
%_arr_int_uint_2 = OpTypeArray %int %uint_2
|
||||
%uint_3 = OpConstant %uint 3
|
||||
@@ -66,74 +70,74 @@
|
||||
%_ptr_StorageBuffer_S_nested = OpTypePointer StorageBuffer %S_nested
|
||||
%dst_nested = OpVariable %_ptr_StorageBuffer_S_nested StorageBuffer
|
||||
%void = OpTypeVoid
|
||||
%25 = OpTypeFunction %void
|
||||
%29 = OpTypeFunction %_arr_v4int_uint_4
|
||||
%32 = OpTypeFunction %S
|
||||
%35 = OpConstantNull %S
|
||||
%36 = OpTypeFunction %void %_arr_v4int_uint_4
|
||||
%26 = OpTypeFunction %void
|
||||
%30 = OpTypeFunction %_arr_v4int_uint_4
|
||||
%33 = OpTypeFunction %S
|
||||
%36 = OpConstantNull %S
|
||||
%37 = OpTypeFunction %void %_arr_v4int_uint_4
|
||||
%_ptr_Function__arr_v4int_uint_4 = OpTypePointer Function %_arr_v4int_uint_4
|
||||
%uint_0 = OpConstant %uint 0
|
||||
%_ptr_StorageBuffer__arr_v4int_uint_4 = OpTypePointer StorageBuffer %_arr_v4int_uint_4
|
||||
%int_1 = OpConstant %int 1
|
||||
%46 = OpConstantComposite %v4int %int_1 %int_1 %int_1 %int_1
|
||||
%47 = OpConstantComposite %v4int %int_1 %int_1 %int_1 %int_1
|
||||
%int_2 = OpConstant %int 2
|
||||
%48 = OpConstantComposite %v4int %int_2 %int_2 %int_2 %int_2
|
||||
%49 = OpConstantComposite %v4int %int_2 %int_2 %int_2 %int_2
|
||||
%int_3 = OpConstant %int 3
|
||||
%50 = OpConstantComposite %v4int %int_3 %int_3 %int_3 %int_3
|
||||
%51 = OpConstantComposite %_arr_v4int_uint_4 %46 %48 %50 %50
|
||||
%51 = OpConstantComposite %v4int %int_3 %int_3 %int_3 %int_3
|
||||
%52 = OpConstantComposite %_arr_v4int_uint_4 %47 %49 %51 %51
|
||||
%_ptr_Uniform__arr_v4int_uint_4 = OpTypePointer Uniform %_arr_v4int_uint_4
|
||||
%_ptr_Function__arr__arr__arr_int_uint_2_uint_3_uint_4 = OpTypePointer Function %_arr__arr__arr_int_uint_2_uint_3_uint_4
|
||||
%74 = OpConstantNull %_arr__arr__arr_int_uint_2_uint_3_uint_4
|
||||
%75 = OpConstantNull %_arr__arr__arr_int_uint_2_uint_3_uint_4
|
||||
%_ptr_StorageBuffer__arr__arr__arr_int_uint_2_uint_3_uint_4 = OpTypePointer StorageBuffer %_arr__arr__arr_int_uint_2_uint_3_uint_4
|
||||
%unused_entry_point = OpFunction %void None %25
|
||||
%28 = OpLabel
|
||||
%unused_entry_point = OpFunction %void None %26
|
||||
%29 = OpLabel
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%ret_arr = OpFunction %_arr_v4int_uint_4 None %29
|
||||
%31 = OpLabel
|
||||
%ret_arr = OpFunction %_arr_v4int_uint_4 None %30
|
||||
%32 = OpLabel
|
||||
OpReturnValue %8
|
||||
OpFunctionEnd
|
||||
%ret_struct_arr = OpFunction %S None %32
|
||||
%34 = OpLabel
|
||||
OpReturnValue %35
|
||||
%ret_struct_arr = OpFunction %S None %33
|
||||
%35 = OpLabel
|
||||
OpReturnValue %36
|
||||
OpFunctionEnd
|
||||
%foo = OpFunction %void None %36
|
||||
%foo = OpFunction %void None %37
|
||||
%src_param = OpFunctionParameter %_arr_v4int_uint_4
|
||||
%39 = OpLabel
|
||||
%40 = OpLabel
|
||||
%src_function = OpVariable %_ptr_Function__arr_v4int_uint_4 Function %8
|
||||
%src_nested = OpVariable %_ptr_Function__arr__arr__arr_int_uint_2_uint_3_uint_4 Function %74
|
||||
%44 = OpAccessChain %_ptr_StorageBuffer__arr_v4int_uint_4 %dst %uint_0
|
||||
OpStore %44 %51
|
||||
%52 = OpAccessChain %_ptr_StorageBuffer__arr_v4int_uint_4 %dst %uint_0
|
||||
OpStore %52 %src_param
|
||||
%53 = OpFunctionCall %_arr_v4int_uint_4 %ret_arr
|
||||
%54 = OpAccessChain %_ptr_StorageBuffer__arr_v4int_uint_4 %dst %uint_0
|
||||
OpStore %54 %53
|
||||
%55 = OpAccessChain %_ptr_StorageBuffer__arr_v4int_uint_4 %dst %uint_0
|
||||
OpStore %55 %8
|
||||
%56 = OpAccessChain %_ptr_StorageBuffer__arr_v4int_uint_4 %dst %uint_0
|
||||
%57 = OpLoad %_arr_v4int_uint_4 %src_function
|
||||
OpStore %56 %57
|
||||
%58 = OpAccessChain %_ptr_StorageBuffer__arr_v4int_uint_4 %dst %uint_0
|
||||
%59 = OpLoad %_arr_v4int_uint_4 %src_private
|
||||
OpStore %58 %59
|
||||
%60 = OpAccessChain %_ptr_StorageBuffer__arr_v4int_uint_4 %dst %uint_0
|
||||
%61 = OpLoad %_arr_v4int_uint_4 %src_workgroup
|
||||
OpStore %60 %61
|
||||
%62 = OpFunctionCall %S %ret_struct_arr
|
||||
%63 = OpAccessChain %_ptr_StorageBuffer__arr_v4int_uint_4 %dst %uint_0
|
||||
%64 = OpCompositeExtract %_arr_v4int_uint_4 %62 0
|
||||
OpStore %63 %64
|
||||
%65 = OpAccessChain %_ptr_StorageBuffer__arr_v4int_uint_4 %dst %uint_0
|
||||
%67 = OpAccessChain %_ptr_Uniform__arr_v4int_uint_4 %src_uniform %uint_0
|
||||
%68 = OpLoad %_arr_v4int_uint_4 %67
|
||||
OpStore %65 %68
|
||||
%69 = OpAccessChain %_ptr_StorageBuffer__arr_v4int_uint_4 %dst %uint_0
|
||||
%70 = OpAccessChain %_ptr_StorageBuffer__arr_v4int_uint_4 %src_storage %uint_0
|
||||
%71 = OpLoad %_arr_v4int_uint_4 %70
|
||||
OpStore %69 %71
|
||||
%76 = OpAccessChain %_ptr_StorageBuffer__arr__arr__arr_int_uint_2_uint_3_uint_4 %dst_nested %uint_0
|
||||
%77 = OpLoad %_arr__arr__arr_int_uint_2_uint_3_uint_4 %src_nested
|
||||
OpStore %76 %77
|
||||
%src_nested = OpVariable %_ptr_Function__arr__arr__arr_int_uint_2_uint_3_uint_4 Function %75
|
||||
%45 = OpAccessChain %_ptr_StorageBuffer__arr_v4int_uint_4 %dst %uint_0 %uint_0
|
||||
OpStore %45 %52
|
||||
%53 = OpAccessChain %_ptr_StorageBuffer__arr_v4int_uint_4 %dst %uint_0 %uint_0
|
||||
OpStore %53 %src_param
|
||||
%54 = OpFunctionCall %_arr_v4int_uint_4 %ret_arr
|
||||
%55 = OpAccessChain %_ptr_StorageBuffer__arr_v4int_uint_4 %dst %uint_0 %uint_0
|
||||
OpStore %55 %54
|
||||
%56 = OpAccessChain %_ptr_StorageBuffer__arr_v4int_uint_4 %dst %uint_0 %uint_0
|
||||
OpStore %56 %8
|
||||
%57 = OpAccessChain %_ptr_StorageBuffer__arr_v4int_uint_4 %dst %uint_0 %uint_0
|
||||
%58 = OpLoad %_arr_v4int_uint_4 %src_function
|
||||
OpStore %57 %58
|
||||
%59 = OpAccessChain %_ptr_StorageBuffer__arr_v4int_uint_4 %dst %uint_0 %uint_0
|
||||
%60 = OpLoad %_arr_v4int_uint_4 %src_private
|
||||
OpStore %59 %60
|
||||
%61 = OpAccessChain %_ptr_StorageBuffer__arr_v4int_uint_4 %dst %uint_0 %uint_0
|
||||
%62 = OpLoad %_arr_v4int_uint_4 %src_workgroup
|
||||
OpStore %61 %62
|
||||
%63 = OpFunctionCall %S %ret_struct_arr
|
||||
%64 = OpAccessChain %_ptr_StorageBuffer__arr_v4int_uint_4 %dst %uint_0 %uint_0
|
||||
%65 = OpCompositeExtract %_arr_v4int_uint_4 %63 0
|
||||
OpStore %64 %65
|
||||
%66 = OpAccessChain %_ptr_StorageBuffer__arr_v4int_uint_4 %dst %uint_0 %uint_0
|
||||
%68 = OpAccessChain %_ptr_Uniform__arr_v4int_uint_4 %src_uniform %uint_0 %uint_0
|
||||
%69 = OpLoad %_arr_v4int_uint_4 %68
|
||||
OpStore %66 %69
|
||||
%70 = OpAccessChain %_ptr_StorageBuffer__arr_v4int_uint_4 %dst %uint_0 %uint_0
|
||||
%71 = OpAccessChain %_ptr_StorageBuffer__arr_v4int_uint_4 %src_storage %uint_0 %uint_0
|
||||
%72 = OpLoad %_arr_v4int_uint_4 %71
|
||||
OpStore %70 %72
|
||||
%77 = OpAccessChain %_ptr_StorageBuffer__arr__arr__arr_int_uint_2_uint_3_uint_4 %dst_nested %uint_0
|
||||
%78 = OpLoad %_arr__arr__arr_int_uint_2_uint_3_uint_4 %src_nested
|
||||
OpStore %77 %78
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
|
||||
@@ -10,13 +10,14 @@ struct S {
|
||||
|
||||
ivec4 src_private[4] = ivec4[4](ivec4(0, 0, 0, 0), ivec4(0, 0, 0, 0), ivec4(0, 0, 0, 0), ivec4(0, 0, 0, 0));
|
||||
shared ivec4 src_workgroup[4];
|
||||
layout(binding = 0) uniform S_1 {
|
||||
ivec4 arr[4];
|
||||
layout(binding = 0) uniform src_uniform_block_ubo {
|
||||
S inner;
|
||||
} src_uniform;
|
||||
|
||||
layout(binding = 1, std430) buffer S_2 {
|
||||
ivec4 arr[4];
|
||||
layout(binding = 1, std430) buffer src_uniform_block_ssbo {
|
||||
S inner;
|
||||
} src_storage;
|
||||
|
||||
shared ivec4 dst[4];
|
||||
shared int dst_nested[4][3][2];
|
||||
ivec4[4] ret_arr() {
|
||||
@@ -42,8 +43,8 @@ void foo(ivec4 src_param[4]) {
|
||||
dst = src_workgroup;
|
||||
S tint_symbol = ret_struct_arr();
|
||||
dst = tint_symbol.arr;
|
||||
dst = src_uniform.arr;
|
||||
dst = src_storage.arr;
|
||||
dst = src_uniform.inner.arr;
|
||||
dst = src_storage.inner.arr;
|
||||
int src_nested[4][3][2] = int[4][3][2](int[3][2](int[2](0, 0), int[2](0, 0), int[2](0, 0)), int[3][2](int[2](0, 0), int[2](0, 0), int[2](0, 0)), int[3][2](int[2](0, 0), int[2](0, 0), int[2](0, 0)), int[3][2](int[2](0, 0), int[2](0, 0), int[2](0, 0)));
|
||||
dst_nested = src_nested;
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
; SPIR-V
|
||||
; Version: 1.3
|
||||
; Generator: Google Tint Compiler; 0
|
||||
; Bound: 65
|
||||
; Bound: 66
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
OpMemoryModel Logical GLSL450
|
||||
@@ -9,6 +9,8 @@
|
||||
OpExecutionMode %unused_entry_point LocalSize 1 1 1
|
||||
OpName %src_private "src_private"
|
||||
OpName %src_workgroup "src_workgroup"
|
||||
OpName %src_uniform_block "src_uniform_block"
|
||||
OpMemberName %src_uniform_block 0 "inner"
|
||||
OpName %S "S"
|
||||
OpMemberName %S 0 "arr"
|
||||
OpName %src_uniform "src_uniform"
|
||||
@@ -23,7 +25,8 @@
|
||||
OpName %src_function "src_function"
|
||||
OpName %src_nested "src_nested"
|
||||
OpDecorate %_arr_v4int_uint_4 ArrayStride 16
|
||||
OpDecorate %S Block
|
||||
OpDecorate %src_uniform_block Block
|
||||
OpMemberDecorate %src_uniform_block 0 Offset 0
|
||||
OpMemberDecorate %S 0 Offset 0
|
||||
OpDecorate %src_uniform NonWritable
|
||||
OpDecorate %src_uniform DescriptorSet 0
|
||||
@@ -44,10 +47,11 @@
|
||||
%_ptr_Workgroup__arr_v4int_uint_4 = OpTypePointer Workgroup %_arr_v4int_uint_4
|
||||
%src_workgroup = OpVariable %_ptr_Workgroup__arr_v4int_uint_4 Workgroup
|
||||
%S = OpTypeStruct %_arr_v4int_uint_4
|
||||
%_ptr_Uniform_S = OpTypePointer Uniform %S
|
||||
%src_uniform = OpVariable %_ptr_Uniform_S Uniform
|
||||
%_ptr_StorageBuffer_S = OpTypePointer StorageBuffer %S
|
||||
%src_storage = OpVariable %_ptr_StorageBuffer_S StorageBuffer
|
||||
%src_uniform_block = OpTypeStruct %S
|
||||
%_ptr_Uniform_src_uniform_block = OpTypePointer Uniform %src_uniform_block
|
||||
%src_uniform = OpVariable %_ptr_Uniform_src_uniform_block Uniform
|
||||
%_ptr_StorageBuffer_src_uniform_block = OpTypePointer StorageBuffer %src_uniform_block
|
||||
%src_storage = OpVariable %_ptr_StorageBuffer_src_uniform_block StorageBuffer
|
||||
%dst = OpVariable %_ptr_Workgroup__arr_v4int_uint_4 Workgroup
|
||||
%uint_2 = OpConstant %uint 2
|
||||
%_arr_int_uint_2 = OpTypeArray %int %uint_2
|
||||
@@ -57,62 +61,62 @@
|
||||
%_ptr_Workgroup__arr__arr__arr_int_uint_2_uint_3_uint_4 = OpTypePointer Workgroup %_arr__arr__arr_int_uint_2_uint_3_uint_4
|
||||
%dst_nested = OpVariable %_ptr_Workgroup__arr__arr__arr_int_uint_2_uint_3_uint_4 Workgroup
|
||||
%void = OpTypeVoid
|
||||
%24 = OpTypeFunction %void
|
||||
%28 = OpTypeFunction %_arr_v4int_uint_4
|
||||
%31 = OpTypeFunction %S
|
||||
%34 = OpConstantNull %S
|
||||
%35 = OpTypeFunction %void %_arr_v4int_uint_4
|
||||
%25 = OpTypeFunction %void
|
||||
%29 = OpTypeFunction %_arr_v4int_uint_4
|
||||
%32 = OpTypeFunction %S
|
||||
%35 = OpConstantNull %S
|
||||
%36 = OpTypeFunction %void %_arr_v4int_uint_4
|
||||
%_ptr_Function__arr_v4int_uint_4 = OpTypePointer Function %_arr_v4int_uint_4
|
||||
%int_1 = OpConstant %int 1
|
||||
%42 = OpConstantComposite %v4int %int_1 %int_1 %int_1 %int_1
|
||||
%43 = OpConstantComposite %v4int %int_1 %int_1 %int_1 %int_1
|
||||
%int_2 = OpConstant %int 2
|
||||
%44 = OpConstantComposite %v4int %int_2 %int_2 %int_2 %int_2
|
||||
%45 = OpConstantComposite %v4int %int_2 %int_2 %int_2 %int_2
|
||||
%int_3 = OpConstant %int 3
|
||||
%46 = OpConstantComposite %v4int %int_3 %int_3 %int_3 %int_3
|
||||
%47 = OpConstantComposite %_arr_v4int_uint_4 %42 %44 %46 %46
|
||||
%47 = OpConstantComposite %v4int %int_3 %int_3 %int_3 %int_3
|
||||
%48 = OpConstantComposite %_arr_v4int_uint_4 %43 %45 %47 %47
|
||||
%uint_0 = OpConstant %uint 0
|
||||
%_ptr_Uniform__arr_v4int_uint_4 = OpTypePointer Uniform %_arr_v4int_uint_4
|
||||
%_ptr_StorageBuffer__arr_v4int_uint_4 = OpTypePointer StorageBuffer %_arr_v4int_uint_4
|
||||
%_ptr_Function__arr__arr__arr_int_uint_2_uint_3_uint_4 = OpTypePointer Function %_arr__arr__arr_int_uint_2_uint_3_uint_4
|
||||
%63 = OpConstantNull %_arr__arr__arr_int_uint_2_uint_3_uint_4
|
||||
%unused_entry_point = OpFunction %void None %24
|
||||
%27 = OpLabel
|
||||
%64 = OpConstantNull %_arr__arr__arr_int_uint_2_uint_3_uint_4
|
||||
%unused_entry_point = OpFunction %void None %25
|
||||
%28 = OpLabel
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%ret_arr = OpFunction %_arr_v4int_uint_4 None %28
|
||||
%30 = OpLabel
|
||||
%ret_arr = OpFunction %_arr_v4int_uint_4 None %29
|
||||
%31 = OpLabel
|
||||
OpReturnValue %8
|
||||
OpFunctionEnd
|
||||
%ret_struct_arr = OpFunction %S None %31
|
||||
%33 = OpLabel
|
||||
OpReturnValue %34
|
||||
%ret_struct_arr = OpFunction %S None %32
|
||||
%34 = OpLabel
|
||||
OpReturnValue %35
|
||||
OpFunctionEnd
|
||||
%foo = OpFunction %void None %35
|
||||
%foo = OpFunction %void None %36
|
||||
%src_param = OpFunctionParameter %_arr_v4int_uint_4
|
||||
%38 = OpLabel
|
||||
%39 = OpLabel
|
||||
%src_function = OpVariable %_ptr_Function__arr_v4int_uint_4 Function %8
|
||||
%src_nested = OpVariable %_ptr_Function__arr__arr__arr_int_uint_2_uint_3_uint_4 Function %63
|
||||
OpStore %dst %47
|
||||
OpStore %dst %src_param
|
||||
%48 = OpFunctionCall %_arr_v4int_uint_4 %ret_arr
|
||||
%src_nested = OpVariable %_ptr_Function__arr__arr__arr_int_uint_2_uint_3_uint_4 Function %64
|
||||
OpStore %dst %48
|
||||
OpStore %dst %8
|
||||
%49 = OpLoad %_arr_v4int_uint_4 %src_function
|
||||
OpStore %dst %src_param
|
||||
%49 = OpFunctionCall %_arr_v4int_uint_4 %ret_arr
|
||||
OpStore %dst %49
|
||||
%50 = OpLoad %_arr_v4int_uint_4 %src_private
|
||||
OpStore %dst %8
|
||||
%50 = OpLoad %_arr_v4int_uint_4 %src_function
|
||||
OpStore %dst %50
|
||||
%51 = OpLoad %_arr_v4int_uint_4 %src_workgroup
|
||||
%51 = OpLoad %_arr_v4int_uint_4 %src_private
|
||||
OpStore %dst %51
|
||||
%52 = OpFunctionCall %S %ret_struct_arr
|
||||
%53 = OpCompositeExtract %_arr_v4int_uint_4 %52 0
|
||||
OpStore %dst %53
|
||||
%56 = OpAccessChain %_ptr_Uniform__arr_v4int_uint_4 %src_uniform %uint_0
|
||||
%57 = OpLoad %_arr_v4int_uint_4 %56
|
||||
OpStore %dst %57
|
||||
%59 = OpAccessChain %_ptr_StorageBuffer__arr_v4int_uint_4 %src_storage %uint_0
|
||||
%60 = OpLoad %_arr_v4int_uint_4 %59
|
||||
OpStore %dst %60
|
||||
%64 = OpLoad %_arr__arr__arr_int_uint_2_uint_3_uint_4 %src_nested
|
||||
OpStore %dst_nested %64
|
||||
%52 = OpLoad %_arr_v4int_uint_4 %src_workgroup
|
||||
OpStore %dst %52
|
||||
%53 = OpFunctionCall %S %ret_struct_arr
|
||||
%54 = OpCompositeExtract %_arr_v4int_uint_4 %53 0
|
||||
OpStore %dst %54
|
||||
%57 = OpAccessChain %_ptr_Uniform__arr_v4int_uint_4 %src_uniform %uint_0 %uint_0
|
||||
%58 = OpLoad %_arr_v4int_uint_4 %57
|
||||
OpStore %dst %58
|
||||
%60 = OpAccessChain %_ptr_StorageBuffer__arr_v4int_uint_4 %src_storage %uint_0 %uint_0
|
||||
%61 = OpLoad %_arr_v4int_uint_4 %60
|
||||
OpStore %dst %61
|
||||
%65 = OpLoad %_arr__arr__arr_int_uint_2_uint_3_uint_4 %src_nested
|
||||
OpStore %dst_nested %65
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
|
||||
@@ -8,13 +8,10 @@ struct strided_arr_1 {
|
||||
strided_arr el[3][2];
|
||||
};
|
||||
|
||||
struct S {
|
||||
strided_arr_1 a[4];
|
||||
};
|
||||
|
||||
layout(binding = 0, std430) buffer S_1 {
|
||||
layout(binding = 0, std430) buffer S_ssbo {
|
||||
strided_arr_1 a[4];
|
||||
} s;
|
||||
|
||||
void f_1() {
|
||||
strided_arr_1 x_19[4] = s.a;
|
||||
strided_arr x_24[3][2] = s.a[3].el;
|
||||
|
||||
@@ -7,13 +7,7 @@ layout(location = 1) in vec4 color_1;
|
||||
layout(location = 2) in vec2 quad_pos_1;
|
||||
layout(location = 0) out vec4 color_2;
|
||||
layout(location = 1) out vec2 quad_pos_2;
|
||||
struct RenderParams {
|
||||
mat4 modelViewProjectionMatrix;
|
||||
vec3 right;
|
||||
vec3 up;
|
||||
};
|
||||
|
||||
layout(binding = 0) uniform RenderParams_1 {
|
||||
layout(binding = 0) uniform RenderParams_ubo {
|
||||
mat4 modelViewProjectionMatrix;
|
||||
vec3 right;
|
||||
vec3 up;
|
||||
@@ -147,11 +141,6 @@ struct VertexOutput {
|
||||
vec2 quad_pos;
|
||||
};
|
||||
|
||||
struct SimulationParams {
|
||||
float deltaTime;
|
||||
vec4 seed;
|
||||
};
|
||||
|
||||
struct Particle {
|
||||
vec3 position;
|
||||
float lifetime;
|
||||
@@ -159,14 +148,15 @@ struct Particle {
|
||||
vec3 velocity;
|
||||
};
|
||||
|
||||
layout(binding = 0) uniform SimulationParams_1 {
|
||||
layout(binding = 0) uniform SimulationParams_ubo {
|
||||
float deltaTime;
|
||||
vec4 seed;
|
||||
} sim_params;
|
||||
|
||||
layout(binding = 1, std430) buffer Particles_1 {
|
||||
layout(binding = 1, std430) buffer Particles_ssbo {
|
||||
Particle particles[];
|
||||
} data;
|
||||
|
||||
struct UBO {
|
||||
uint width;
|
||||
};
|
||||
@@ -214,8 +204,8 @@ void main() {
|
||||
return;
|
||||
}
|
||||
Error parsing GLSL shader:
|
||||
ERROR: 0:64: 'textureQueryLevels' : no matching overloaded function found
|
||||
ERROR: 0:64: '' : compilation terminated
|
||||
ERROR: 0:60: 'textureQueryLevels' : no matching overloaded function found
|
||||
ERROR: 0:60: '' : compilation terminated
|
||||
ERROR: 2 compilation errors. No code generated.
|
||||
|
||||
|
||||
@@ -252,20 +242,18 @@ struct Particle {
|
||||
vec3 velocity;
|
||||
};
|
||||
|
||||
struct UBO {
|
||||
uint width;
|
||||
};
|
||||
|
||||
layout(binding = 3) uniform UBO_1 {
|
||||
layout(binding = 3) uniform UBO_ubo {
|
||||
uint width;
|
||||
} ubo;
|
||||
|
||||
layout(binding = 4, std430) buffer Buffer_1 {
|
||||
layout(binding = 4, std430) buffer Buffer_ssbo {
|
||||
float weights[];
|
||||
} buf_in;
|
||||
layout(binding = 5, std430) buffer Buffer_2 {
|
||||
|
||||
layout(binding = 5, std430) buffer Buffer_ssbo_1 {
|
||||
float weights[];
|
||||
} buf_out;
|
||||
|
||||
uniform highp sampler2D tex_in_1;
|
||||
void import_level(uvec3 coord) {
|
||||
uint offset = (coord.x + (coord.y * ubo.width));
|
||||
@@ -309,20 +297,18 @@ struct Particle {
|
||||
vec3 velocity;
|
||||
};
|
||||
|
||||
struct UBO {
|
||||
uint width;
|
||||
};
|
||||
|
||||
layout(binding = 3) uniform UBO_1 {
|
||||
layout(binding = 3) uniform UBO_ubo {
|
||||
uint width;
|
||||
} ubo;
|
||||
|
||||
layout(binding = 4, std430) buffer Buffer_1 {
|
||||
layout(binding = 4, std430) buffer Buffer_ssbo {
|
||||
float weights[];
|
||||
} buf_in;
|
||||
layout(binding = 5, std430) buffer Buffer_2 {
|
||||
|
||||
layout(binding = 5, std430) buffer Buffer_ssbo_1 {
|
||||
float weights[];
|
||||
} buf_out;
|
||||
|
||||
layout(rgba8) uniform highp writeonly image2D tex_out;
|
||||
void export_level(uvec3 coord) {
|
||||
if (all(lessThan(coord.xy, uvec2(imageSize(tex_out))))) {
|
||||
|
||||
@@ -12,9 +12,10 @@ struct Inner {
|
||||
ivec4 i[4];
|
||||
};
|
||||
|
||||
layout(binding = 0, std430) buffer S_1 {
|
||||
layout(binding = 0, std430) buffer S_ssbo {
|
||||
Inner arr[];
|
||||
} s;
|
||||
|
||||
void tint_symbol(uint idx) {
|
||||
ivec3 a = s.arr[idx].a;
|
||||
int b = s.arr[idx].b;
|
||||
|
||||
@@ -12,9 +12,10 @@ struct Inner {
|
||||
ivec4 i[4];
|
||||
};
|
||||
|
||||
layout(binding = 0, std430) buffer S_1 {
|
||||
layout(binding = 0, std430) buffer S_ssbo {
|
||||
Inner arr[];
|
||||
} s;
|
||||
|
||||
void tint_symbol(uint idx) {
|
||||
s.arr[idx].a = ivec3(0);
|
||||
s.arr[idx].b = 0;
|
||||
|
||||
@@ -4,20 +4,7 @@ struct Inner {
|
||||
int x;
|
||||
};
|
||||
|
||||
struct S {
|
||||
ivec3 a;
|
||||
int b;
|
||||
uvec3 c;
|
||||
uint d;
|
||||
vec3 e;
|
||||
float f;
|
||||
mat2x3 g;
|
||||
mat3x2 h;
|
||||
Inner i;
|
||||
Inner j[4];
|
||||
};
|
||||
|
||||
layout(binding = 0, std430) buffer S_1 {
|
||||
layout(binding = 0, std430) buffer S_ssbo {
|
||||
ivec3 a;
|
||||
int b;
|
||||
uvec3 c;
|
||||
@@ -29,6 +16,7 @@ layout(binding = 0, std430) buffer S_1 {
|
||||
Inner i;
|
||||
Inner j[4];
|
||||
} s;
|
||||
|
||||
void tint_symbol() {
|
||||
ivec3 a = s.a;
|
||||
int b = s.b;
|
||||
|
||||
@@ -4,20 +4,7 @@ struct Inner {
|
||||
int x;
|
||||
};
|
||||
|
||||
struct S {
|
||||
ivec3 a;
|
||||
int b;
|
||||
uvec3 c;
|
||||
uint d;
|
||||
vec3 e;
|
||||
float f;
|
||||
mat2x3 g;
|
||||
mat3x2 h;
|
||||
Inner i;
|
||||
Inner j[4];
|
||||
};
|
||||
|
||||
layout(binding = 0, std430) buffer S_1 {
|
||||
layout(binding = 0, std430) buffer S_ssbo {
|
||||
ivec3 a;
|
||||
int b;
|
||||
uvec3 c;
|
||||
@@ -29,6 +16,7 @@ layout(binding = 0, std430) buffer S_1 {
|
||||
Inner i;
|
||||
Inner j[4];
|
||||
} s;
|
||||
|
||||
void tint_symbol() {
|
||||
s.a = ivec3(0);
|
||||
s.b = 0;
|
||||
|
||||
@@ -1,15 +1,13 @@
|
||||
#version 310 es
|
||||
|
||||
struct tint_symbol_block {
|
||||
float inner[4];
|
||||
};
|
||||
|
||||
layout(binding = 0, std430) buffer tint_symbol_block_1 {
|
||||
layout(binding = 0, std430) buffer tint_symbol_block_ssbo {
|
||||
float inner[4];
|
||||
} tint_symbol;
|
||||
layout(binding = 1, std430) buffer tint_symbol_block_2 {
|
||||
|
||||
layout(binding = 1, std430) buffer tint_symbol_block_ssbo_1 {
|
||||
float inner[4];
|
||||
} tint_symbol_1;
|
||||
|
||||
void tint_symbol_2() {
|
||||
tint_symbol_1.inner = tint_symbol.inner;
|
||||
}
|
||||
|
||||
@@ -1,15 +1,13 @@
|
||||
#version 310 es
|
||||
|
||||
struct tint_symbol_block {
|
||||
float inner;
|
||||
};
|
||||
|
||||
layout(binding = 0, std430) buffer tint_symbol_block_1 {
|
||||
layout(binding = 0, std430) buffer tint_symbol_block_ssbo {
|
||||
float inner;
|
||||
} tint_symbol;
|
||||
layout(binding = 1, std430) buffer tint_symbol_block_2 {
|
||||
|
||||
layout(binding = 1, std430) buffer tint_symbol_block_ssbo_1 {
|
||||
float inner;
|
||||
} tint_symbol_1;
|
||||
|
||||
void tint_symbol_2() {
|
||||
tint_symbol_1.inner = tint_symbol.inner;
|
||||
}
|
||||
|
||||
@@ -1,15 +1,13 @@
|
||||
#version 310 es
|
||||
|
||||
struct tint_symbol_block {
|
||||
int inner;
|
||||
};
|
||||
|
||||
layout(binding = 0, std430) buffer tint_symbol_block_1 {
|
||||
layout(binding = 0, std430) buffer tint_symbol_block_ssbo {
|
||||
int inner;
|
||||
} tint_symbol;
|
||||
layout(binding = 1, std430) buffer tint_symbol_block_2 {
|
||||
|
||||
layout(binding = 1, std430) buffer tint_symbol_block_ssbo_1 {
|
||||
int inner;
|
||||
} tint_symbol_1;
|
||||
|
||||
void tint_symbol_2() {
|
||||
tint_symbol_1.inner = tint_symbol.inner;
|
||||
}
|
||||
|
||||
@@ -1,15 +1,13 @@
|
||||
#version 310 es
|
||||
|
||||
struct tint_symbol_block {
|
||||
mat2 inner;
|
||||
};
|
||||
|
||||
layout(binding = 0, std430) buffer tint_symbol_block_1 {
|
||||
layout(binding = 0, std430) buffer tint_symbol_block_ssbo {
|
||||
mat2 inner;
|
||||
} tint_symbol;
|
||||
layout(binding = 1, std430) buffer tint_symbol_block_2 {
|
||||
|
||||
layout(binding = 1, std430) buffer tint_symbol_block_ssbo_1 {
|
||||
mat2 inner;
|
||||
} tint_symbol_1;
|
||||
|
||||
void tint_symbol_2() {
|
||||
tint_symbol_1.inner = tint_symbol.inner;
|
||||
}
|
||||
|
||||
@@ -1,15 +1,13 @@
|
||||
#version 310 es
|
||||
|
||||
struct tint_symbol_block {
|
||||
mat2x3 inner;
|
||||
};
|
||||
|
||||
layout(binding = 0, std430) buffer tint_symbol_block_1 {
|
||||
layout(binding = 0, std430) buffer tint_symbol_block_ssbo {
|
||||
mat2x3 inner;
|
||||
} tint_symbol;
|
||||
layout(binding = 1, std430) buffer tint_symbol_block_2 {
|
||||
|
||||
layout(binding = 1, std430) buffer tint_symbol_block_ssbo_1 {
|
||||
mat2x3 inner;
|
||||
} tint_symbol_1;
|
||||
|
||||
void tint_symbol_2() {
|
||||
tint_symbol_1.inner = tint_symbol.inner;
|
||||
}
|
||||
|
||||
@@ -1,15 +1,13 @@
|
||||
#version 310 es
|
||||
|
||||
struct tint_symbol_block {
|
||||
mat3x2 inner;
|
||||
};
|
||||
|
||||
layout(binding = 0, std430) buffer tint_symbol_block_1 {
|
||||
layout(binding = 0, std430) buffer tint_symbol_block_ssbo {
|
||||
mat3x2 inner;
|
||||
} tint_symbol;
|
||||
layout(binding = 1, std430) buffer tint_symbol_block_2 {
|
||||
|
||||
layout(binding = 1, std430) buffer tint_symbol_block_ssbo_1 {
|
||||
mat3x2 inner;
|
||||
} tint_symbol_1;
|
||||
|
||||
void tint_symbol_2() {
|
||||
tint_symbol_1.inner = tint_symbol.inner;
|
||||
}
|
||||
|
||||
@@ -1,15 +1,13 @@
|
||||
#version 310 es
|
||||
|
||||
struct tint_symbol_block {
|
||||
mat4 inner;
|
||||
};
|
||||
|
||||
layout(binding = 0, std430) buffer tint_symbol_block_1 {
|
||||
layout(binding = 0, std430) buffer tint_symbol_block_ssbo {
|
||||
mat4 inner;
|
||||
} tint_symbol;
|
||||
layout(binding = 1, std430) buffer tint_symbol_block_2 {
|
||||
|
||||
layout(binding = 1, std430) buffer tint_symbol_block_ssbo_1 {
|
||||
mat4 inner;
|
||||
} tint_symbol_1;
|
||||
|
||||
void tint_symbol_2() {
|
||||
tint_symbol_1.inner = tint_symbol.inner;
|
||||
}
|
||||
|
||||
@@ -4,12 +4,14 @@ struct S {
|
||||
float f;
|
||||
};
|
||||
|
||||
layout(binding = 0, std430) buffer tint_symbol_block_1 {
|
||||
layout(binding = 0, std430) buffer tint_symbol_block_ssbo {
|
||||
S inner[];
|
||||
} tint_symbol;
|
||||
layout(binding = 1, std430) buffer tint_symbol_block_2 {
|
||||
|
||||
layout(binding = 1, std430) buffer tint_symbol_block_ssbo_1 {
|
||||
S inner[];
|
||||
} tint_symbol_1;
|
||||
|
||||
void tint_symbol_2() {
|
||||
tint_symbol_1.inner[0] = tint_symbol.inner[0];
|
||||
}
|
||||
|
||||
@@ -6,16 +6,14 @@ struct Inner {
|
||||
float f;
|
||||
};
|
||||
|
||||
struct S {
|
||||
Inner inner;
|
||||
};
|
||||
|
||||
layout(binding = 0, std430) buffer S_1 {
|
||||
layout(binding = 0, std430) buffer S_ssbo {
|
||||
Inner inner;
|
||||
} tint_symbol;
|
||||
layout(binding = 1, std430) buffer S_2 {
|
||||
|
||||
layout(binding = 1, std430) buffer S_ssbo_1 {
|
||||
Inner inner;
|
||||
} tint_symbol_1;
|
||||
|
||||
void tint_symbol_2() {
|
||||
tint_symbol_1 = tint_symbol;
|
||||
}
|
||||
@@ -26,8 +24,8 @@ void main() {
|
||||
return;
|
||||
}
|
||||
Error parsing GLSL shader:
|
||||
ERROR: 0:18: 'assign' : cannot convert from 'layout( binding=0 column_major std430) buffer block{layout( column_major std430 offset=0) buffer structure{ global highp float f} inner}' to 'layout( binding=1 column_major std430) buffer block{layout( column_major std430 offset=0) buffer structure{ global highp float f} inner}'
|
||||
ERROR: 0:18: '' : compilation terminated
|
||||
ERROR: 0:16: 'assign' : cannot convert from 'layout( binding=0 column_major std430) buffer block{layout( column_major std430 offset=0) buffer structure{ global highp float f} inner}' to 'layout( binding=1 column_major std430) buffer block{layout( column_major std430 offset=0) buffer structure{ global highp float f} inner}'
|
||||
ERROR: 0:16: '' : compilation terminated
|
||||
ERROR: 2 compilation errors. No code generated.
|
||||
|
||||
|
||||
|
||||
@@ -1,15 +1,13 @@
|
||||
#version 310 es
|
||||
|
||||
struct tint_symbol_block {
|
||||
uint inner;
|
||||
};
|
||||
|
||||
layout(binding = 0, std430) buffer tint_symbol_block_1 {
|
||||
layout(binding = 0, std430) buffer tint_symbol_block_ssbo {
|
||||
uint inner;
|
||||
} tint_symbol;
|
||||
layout(binding = 1, std430) buffer tint_symbol_block_2 {
|
||||
|
||||
layout(binding = 1, std430) buffer tint_symbol_block_ssbo_1 {
|
||||
uint inner;
|
||||
} tint_symbol_1;
|
||||
|
||||
void tint_symbol_2() {
|
||||
tint_symbol_1.inner = tint_symbol.inner;
|
||||
}
|
||||
|
||||
@@ -1,15 +1,13 @@
|
||||
#version 310 es
|
||||
|
||||
struct tint_symbol_block {
|
||||
ivec2 inner;
|
||||
};
|
||||
|
||||
layout(binding = 0, std430) buffer tint_symbol_block_1 {
|
||||
layout(binding = 0, std430) buffer tint_symbol_block_ssbo {
|
||||
ivec2 inner;
|
||||
} tint_symbol;
|
||||
layout(binding = 1, std430) buffer tint_symbol_block_2 {
|
||||
|
||||
layout(binding = 1, std430) buffer tint_symbol_block_ssbo_1 {
|
||||
ivec2 inner;
|
||||
} tint_symbol_1;
|
||||
|
||||
void tint_symbol_2() {
|
||||
tint_symbol_1.inner = tint_symbol.inner;
|
||||
}
|
||||
|
||||
@@ -1,15 +1,13 @@
|
||||
#version 310 es
|
||||
|
||||
struct tint_symbol_block {
|
||||
uvec3 inner;
|
||||
};
|
||||
|
||||
layout(binding = 0, std430) buffer tint_symbol_block_1 {
|
||||
layout(binding = 0, std430) buffer tint_symbol_block_ssbo {
|
||||
uvec3 inner;
|
||||
} tint_symbol;
|
||||
layout(binding = 1, std430) buffer tint_symbol_block_2 {
|
||||
|
||||
layout(binding = 1, std430) buffer tint_symbol_block_ssbo_1 {
|
||||
uvec3 inner;
|
||||
} tint_symbol_1;
|
||||
|
||||
void tint_symbol_2() {
|
||||
tint_symbol_1.inner = tint_symbol.inner;
|
||||
}
|
||||
|
||||
@@ -1,15 +1,13 @@
|
||||
#version 310 es
|
||||
|
||||
struct tint_symbol_block {
|
||||
vec4 inner;
|
||||
};
|
||||
|
||||
layout(binding = 0, std430) buffer tint_symbol_block_1 {
|
||||
layout(binding = 0, std430) buffer tint_symbol_block_ssbo {
|
||||
vec4 inner;
|
||||
} tint_symbol;
|
||||
layout(binding = 1, std430) buffer tint_symbol_block_2 {
|
||||
|
||||
layout(binding = 1, std430) buffer tint_symbol_block_ssbo_1 {
|
||||
vec4 inner;
|
||||
} tint_symbol_1;
|
||||
|
||||
void tint_symbol_2() {
|
||||
tint_symbol_1.inner = tint_symbol.inner;
|
||||
}
|
||||
|
||||
@@ -34,11 +34,7 @@ struct S {
|
||||
Inner arr[8];
|
||||
};
|
||||
|
||||
struct S_std140 {
|
||||
Inner_std140 arr[8];
|
||||
};
|
||||
|
||||
layout(binding = 0) uniform S_std140_1 {
|
||||
layout(binding = 0) uniform S_std140_ubo {
|
||||
Inner_std140 arr[8];
|
||||
} s;
|
||||
|
||||
|
||||
@@ -19,24 +19,7 @@ struct S {
|
||||
Inner l[4];
|
||||
};
|
||||
|
||||
struct S_std140 {
|
||||
ivec3 a;
|
||||
int b;
|
||||
uvec3 c;
|
||||
uint d;
|
||||
vec3 e;
|
||||
float f;
|
||||
ivec2 g;
|
||||
ivec2 h;
|
||||
mat2x3 i;
|
||||
vec2 j_0;
|
||||
vec2 j_1;
|
||||
vec2 j_2;
|
||||
Inner k;
|
||||
Inner l[4];
|
||||
};
|
||||
|
||||
layout(binding = 0) uniform S_std140_1 {
|
||||
layout(binding = 0) uniform S_std140_ubo {
|
||||
ivec3 a;
|
||||
int b;
|
||||
uvec3 c;
|
||||
|
||||
@@ -17,11 +17,7 @@ struct Outer_std140 {
|
||||
Inner_std140 a[4];
|
||||
};
|
||||
|
||||
struct a_block {
|
||||
Outer_std140 inner[4];
|
||||
};
|
||||
|
||||
layout(binding = 0) uniform a_block_1 {
|
||||
layout(binding = 0) uniform a_block_ubo {
|
||||
Outer_std140 inner[4];
|
||||
} a;
|
||||
|
||||
|
||||
@@ -17,11 +17,7 @@ struct Outer_std140 {
|
||||
Inner_std140 a[4];
|
||||
};
|
||||
|
||||
struct a_block {
|
||||
Outer_std140 inner[4];
|
||||
};
|
||||
|
||||
layout(binding = 0) uniform a_block_1 {
|
||||
layout(binding = 0) uniform a_block_ubo {
|
||||
Outer_std140 inner[4];
|
||||
} a;
|
||||
|
||||
|
||||
@@ -13,11 +13,7 @@ struct S_std140 {
|
||||
int after;
|
||||
};
|
||||
|
||||
struct u_block {
|
||||
S_std140 inner[4];
|
||||
};
|
||||
|
||||
layout(binding = 0) uniform u_block_1 {
|
||||
layout(binding = 0) uniform u_block_ubo {
|
||||
S_std140 inner[4];
|
||||
} u;
|
||||
|
||||
|
||||
@@ -13,11 +13,7 @@ struct S_std140 {
|
||||
int after;
|
||||
};
|
||||
|
||||
struct u_block {
|
||||
S_std140 inner[4];
|
||||
};
|
||||
|
||||
layout(binding = 0) uniform u_block_1 {
|
||||
layout(binding = 0) uniform u_block_ubo {
|
||||
S_std140 inner[4];
|
||||
} u;
|
||||
|
||||
|
||||
@@ -13,11 +13,7 @@ struct S_std140 {
|
||||
int after;
|
||||
};
|
||||
|
||||
struct u_block {
|
||||
S_std140 inner[4];
|
||||
};
|
||||
|
||||
layout(binding = 0) uniform u_block_1 {
|
||||
layout(binding = 0) uniform u_block_ubo {
|
||||
S_std140 inner[4];
|
||||
} u;
|
||||
|
||||
|
||||
@@ -13,21 +13,14 @@ struct S_std140 {
|
||||
int after;
|
||||
};
|
||||
|
||||
struct u_block {
|
||||
S_std140 inner[4];
|
||||
};
|
||||
|
||||
layout(binding = 0) uniform u_block_1 {
|
||||
layout(binding = 0) uniform u_block_ubo {
|
||||
S_std140 inner[4];
|
||||
} u;
|
||||
|
||||
struct s_block {
|
||||
S inner[4];
|
||||
};
|
||||
|
||||
layout(binding = 1, std430) buffer s_block_1 {
|
||||
layout(binding = 1, std430) buffer s_block_ssbo {
|
||||
S inner[4];
|
||||
} s;
|
||||
|
||||
S conv_S(S_std140 val) {
|
||||
S tint_symbol = S(val.before, mat2(val.m_0, val.m_1), val.after);
|
||||
return tint_symbol;
|
||||
|
||||
@@ -13,11 +13,7 @@ struct S_std140 {
|
||||
int after;
|
||||
};
|
||||
|
||||
struct u_block {
|
||||
S_std140 inner[4];
|
||||
};
|
||||
|
||||
layout(binding = 0) uniform u_block_1 {
|
||||
layout(binding = 0) uniform u_block_ubo {
|
||||
S_std140 inner[4];
|
||||
} u;
|
||||
|
||||
|
||||
@@ -18,11 +18,7 @@ struct Outer_std140 {
|
||||
Inner_std140 a[4];
|
||||
};
|
||||
|
||||
struct a_block {
|
||||
Outer_std140 inner[4];
|
||||
};
|
||||
|
||||
layout(binding = 0) uniform a_block_1 {
|
||||
layout(binding = 0) uniform a_block_ubo {
|
||||
Outer_std140 inner[4];
|
||||
} a;
|
||||
|
||||
|
||||
@@ -18,11 +18,7 @@ struct Outer_std140 {
|
||||
Inner_std140 a[4];
|
||||
};
|
||||
|
||||
struct a_block {
|
||||
Outer_std140 inner[4];
|
||||
};
|
||||
|
||||
layout(binding = 0) uniform a_block_1 {
|
||||
layout(binding = 0) uniform a_block_ubo {
|
||||
Outer_std140 inner[4];
|
||||
} a;
|
||||
|
||||
|
||||
@@ -14,11 +14,7 @@ struct S_std140 {
|
||||
int after;
|
||||
};
|
||||
|
||||
struct u_block {
|
||||
S_std140 inner[4];
|
||||
};
|
||||
|
||||
layout(binding = 0) uniform u_block_1 {
|
||||
layout(binding = 0) uniform u_block_ubo {
|
||||
S_std140 inner[4];
|
||||
} u;
|
||||
|
||||
|
||||
@@ -14,11 +14,7 @@ struct S_std140 {
|
||||
int after;
|
||||
};
|
||||
|
||||
struct u_block {
|
||||
S_std140 inner[4];
|
||||
};
|
||||
|
||||
layout(binding = 0) uniform u_block_1 {
|
||||
layout(binding = 0) uniform u_block_ubo {
|
||||
S_std140 inner[4];
|
||||
} u;
|
||||
|
||||
|
||||
@@ -14,11 +14,7 @@ struct S_std140 {
|
||||
int after;
|
||||
};
|
||||
|
||||
struct u_block {
|
||||
S_std140 inner[4];
|
||||
};
|
||||
|
||||
layout(binding = 0) uniform u_block_1 {
|
||||
layout(binding = 0) uniform u_block_ubo {
|
||||
S_std140 inner[4];
|
||||
} u;
|
||||
|
||||
|
||||
@@ -14,21 +14,14 @@ struct S_std140 {
|
||||
int after;
|
||||
};
|
||||
|
||||
struct u_block {
|
||||
S_std140 inner[4];
|
||||
};
|
||||
|
||||
layout(binding = 0) uniform u_block_1 {
|
||||
layout(binding = 0) uniform u_block_ubo {
|
||||
S_std140 inner[4];
|
||||
} u;
|
||||
|
||||
struct s_block {
|
||||
S inner[4];
|
||||
};
|
||||
|
||||
layout(binding = 1, std430) buffer s_block_1 {
|
||||
layout(binding = 1, std430) buffer s_block_ssbo {
|
||||
S inner[4];
|
||||
} s;
|
||||
|
||||
S conv_S(S_std140 val) {
|
||||
S tint_symbol = S(val.before, mat3x2(val.m_0, val.m_1, val.m_2), val.after);
|
||||
return tint_symbol;
|
||||
|
||||
@@ -14,11 +14,7 @@ struct S_std140 {
|
||||
int after;
|
||||
};
|
||||
|
||||
struct u_block {
|
||||
S_std140 inner[4];
|
||||
};
|
||||
|
||||
layout(binding = 0) uniform u_block_1 {
|
||||
layout(binding = 0) uniform u_block_ubo {
|
||||
S_std140 inner[4];
|
||||
} u;
|
||||
|
||||
|
||||
@@ -19,11 +19,7 @@ struct Outer_std140 {
|
||||
Inner_std140 a[4];
|
||||
};
|
||||
|
||||
struct a_block {
|
||||
Outer_std140 inner[4];
|
||||
};
|
||||
|
||||
layout(binding = 0) uniform a_block_1 {
|
||||
layout(binding = 0) uniform a_block_ubo {
|
||||
Outer_std140 inner[4];
|
||||
} a;
|
||||
|
||||
|
||||
@@ -19,11 +19,7 @@ struct Outer_std140 {
|
||||
Inner_std140 a[4];
|
||||
};
|
||||
|
||||
struct a_block {
|
||||
Outer_std140 inner[4];
|
||||
};
|
||||
|
||||
layout(binding = 0) uniform a_block_1 {
|
||||
layout(binding = 0) uniform a_block_ubo {
|
||||
Outer_std140 inner[4];
|
||||
} a;
|
||||
|
||||
|
||||
@@ -15,11 +15,7 @@ struct S_std140 {
|
||||
int after;
|
||||
};
|
||||
|
||||
struct u_block {
|
||||
S_std140 inner[4];
|
||||
};
|
||||
|
||||
layout(binding = 0) uniform u_block_1 {
|
||||
layout(binding = 0) uniform u_block_ubo {
|
||||
S_std140 inner[4];
|
||||
} u;
|
||||
|
||||
|
||||
@@ -15,11 +15,7 @@ struct S_std140 {
|
||||
int after;
|
||||
};
|
||||
|
||||
struct u_block {
|
||||
S_std140 inner[4];
|
||||
};
|
||||
|
||||
layout(binding = 0) uniform u_block_1 {
|
||||
layout(binding = 0) uniform u_block_ubo {
|
||||
S_std140 inner[4];
|
||||
} u;
|
||||
|
||||
|
||||
@@ -15,11 +15,7 @@ struct S_std140 {
|
||||
int after;
|
||||
};
|
||||
|
||||
struct u_block {
|
||||
S_std140 inner[4];
|
||||
};
|
||||
|
||||
layout(binding = 0) uniform u_block_1 {
|
||||
layout(binding = 0) uniform u_block_ubo {
|
||||
S_std140 inner[4];
|
||||
} u;
|
||||
|
||||
|
||||
@@ -15,21 +15,14 @@ struct S_std140 {
|
||||
int after;
|
||||
};
|
||||
|
||||
struct u_block {
|
||||
S_std140 inner[4];
|
||||
};
|
||||
|
||||
layout(binding = 0) uniform u_block_1 {
|
||||
layout(binding = 0) uniform u_block_ubo {
|
||||
S_std140 inner[4];
|
||||
} u;
|
||||
|
||||
struct s_block {
|
||||
S inner[4];
|
||||
};
|
||||
|
||||
layout(binding = 1, std430) buffer s_block_1 {
|
||||
layout(binding = 1, std430) buffer s_block_ssbo {
|
||||
S inner[4];
|
||||
} s;
|
||||
|
||||
S conv_S(S_std140 val) {
|
||||
S tint_symbol = S(val.before, mat4x2(val.m_0, val.m_1, val.m_2, val.m_3), val.after);
|
||||
return tint_symbol;
|
||||
|
||||
@@ -15,11 +15,7 @@ struct S_std140 {
|
||||
int after;
|
||||
};
|
||||
|
||||
struct u_block {
|
||||
S_std140 inner[4];
|
||||
};
|
||||
|
||||
layout(binding = 0) uniform u_block_1 {
|
||||
layout(binding = 0) uniform u_block_ubo {
|
||||
S_std140 inner[4];
|
||||
} u;
|
||||
|
||||
|
||||
@@ -1,10 +1,6 @@
|
||||
#version 310 es
|
||||
|
||||
struct u_block {
|
||||
vec4 inner[4];
|
||||
};
|
||||
|
||||
layout(binding = 0) uniform u_block_1 {
|
||||
layout(binding = 0) uniform u_block_ubo {
|
||||
vec4 inner[4];
|
||||
} u;
|
||||
|
||||
|
||||
@@ -1,10 +1,6 @@
|
||||
#version 310 es
|
||||
|
||||
struct u_block {
|
||||
float inner;
|
||||
};
|
||||
|
||||
layout(binding = 0) uniform u_block_1 {
|
||||
layout(binding = 0) uniform u_block_ubo {
|
||||
float inner;
|
||||
} u;
|
||||
|
||||
|
||||
@@ -1,10 +1,6 @@
|
||||
#version 310 es
|
||||
|
||||
struct u_block {
|
||||
int inner;
|
||||
};
|
||||
|
||||
layout(binding = 0) uniform u_block_1 {
|
||||
layout(binding = 0) uniform u_block_ubo {
|
||||
int inner;
|
||||
} u;
|
||||
|
||||
|
||||
@@ -1,10 +1,6 @@
|
||||
#version 310 es
|
||||
|
||||
struct u_block {
|
||||
mat2 inner;
|
||||
};
|
||||
|
||||
layout(binding = 0) uniform u_block_1 {
|
||||
layout(binding = 0) uniform u_block_ubo {
|
||||
mat2 inner;
|
||||
} u;
|
||||
|
||||
|
||||
@@ -1,10 +1,6 @@
|
||||
#version 310 es
|
||||
|
||||
struct u_block {
|
||||
mat2x3 inner;
|
||||
};
|
||||
|
||||
layout(binding = 0) uniform u_block_1 {
|
||||
layout(binding = 0) uniform u_block_ubo {
|
||||
mat2x3 inner;
|
||||
} u;
|
||||
|
||||
|
||||
@@ -1,10 +1,6 @@
|
||||
#version 310 es
|
||||
|
||||
struct u_block {
|
||||
mat3x2 inner;
|
||||
};
|
||||
|
||||
layout(binding = 0) uniform u_block_1 {
|
||||
layout(binding = 0) uniform u_block_ubo {
|
||||
mat3x2 inner;
|
||||
} u;
|
||||
|
||||
|
||||
@@ -1,10 +1,6 @@
|
||||
#version 310 es
|
||||
|
||||
struct u_block {
|
||||
mat4 inner;
|
||||
};
|
||||
|
||||
layout(binding = 0) uniform u_block_1 {
|
||||
layout(binding = 0) uniform u_block_ubo {
|
||||
mat4 inner;
|
||||
} u;
|
||||
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
SKIP: FAILED
|
||||
|
||||
#version 310 es
|
||||
|
||||
struct Inner {
|
||||
@@ -10,12 +8,12 @@ struct S {
|
||||
Inner inner;
|
||||
};
|
||||
|
||||
layout(binding = 0) uniform S_1 {
|
||||
Inner inner;
|
||||
layout(binding = 0) uniform u_block_ubo {
|
||||
S inner;
|
||||
} u;
|
||||
|
||||
void tint_symbol() {
|
||||
S x = u;
|
||||
S x = u.inner;
|
||||
}
|
||||
|
||||
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
|
||||
@@ -23,10 +21,3 @@ void main() {
|
||||
tint_symbol();
|
||||
return;
|
||||
}
|
||||
Error parsing GLSL shader:
|
||||
ERROR: 0:16: '=' : cannot convert from 'layout( binding=0 column_major shared) uniform block{layout( column_major shared) uniform structure{ global highp float f} inner}' to ' temp structure{ global structure{ global highp float f} inner}'
|
||||
ERROR: 0:16: '' : compilation terminated
|
||||
ERROR: 2 compilation errors. No code generated.
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,19 +1,22 @@
|
||||
; SPIR-V
|
||||
; Version: 1.3
|
||||
; Generator: Google Tint Compiler; 0
|
||||
; Bound: 11
|
||||
; Bound: 16
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
OpMemoryModel Logical GLSL450
|
||||
OpEntryPoint GLCompute %main "main"
|
||||
OpExecutionMode %main LocalSize 1 1 1
|
||||
OpName %u_block "u_block"
|
||||
OpMemberName %u_block 0 "inner"
|
||||
OpName %S "S"
|
||||
OpMemberName %S 0 "inner"
|
||||
OpName %Inner "Inner"
|
||||
OpMemberName %Inner 0 "f"
|
||||
OpName %u "u"
|
||||
OpName %main "main"
|
||||
OpDecorate %S Block
|
||||
OpDecorate %u_block Block
|
||||
OpMemberDecorate %u_block 0 Offset 0
|
||||
OpMemberDecorate %S 0 Offset 0
|
||||
OpMemberDecorate %Inner 0 Offset 0
|
||||
OpDecorate %u NonWritable
|
||||
@@ -22,12 +25,17 @@
|
||||
%float = OpTypeFloat 32
|
||||
%Inner = OpTypeStruct %float
|
||||
%S = OpTypeStruct %Inner
|
||||
%_ptr_Uniform_S = OpTypePointer Uniform %S
|
||||
%u = OpVariable %_ptr_Uniform_S Uniform
|
||||
%u_block = OpTypeStruct %S
|
||||
%_ptr_Uniform_u_block = OpTypePointer Uniform %u_block
|
||||
%u = OpVariable %_ptr_Uniform_u_block Uniform
|
||||
%void = OpTypeVoid
|
||||
%6 = OpTypeFunction %void
|
||||
%main = OpFunction %void None %6
|
||||
%9 = OpLabel
|
||||
%10 = OpLoad %S %u
|
||||
%7 = OpTypeFunction %void
|
||||
%uint = OpTypeInt 32 0
|
||||
%uint_0 = OpConstant %uint 0
|
||||
%_ptr_Uniform_S = OpTypePointer Uniform %S
|
||||
%main = OpFunction %void None %7
|
||||
%10 = OpLabel
|
||||
%14 = OpAccessChain %_ptr_Uniform_S %u %uint_0
|
||||
%15 = OpLoad %S %14
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
|
||||
@@ -1,10 +1,6 @@
|
||||
#version 310 es
|
||||
|
||||
struct u_block {
|
||||
uint inner;
|
||||
};
|
||||
|
||||
layout(binding = 0) uniform u_block_1 {
|
||||
layout(binding = 0) uniform u_block_ubo {
|
||||
uint inner;
|
||||
} u;
|
||||
|
||||
|
||||
@@ -1,10 +1,6 @@
|
||||
#version 310 es
|
||||
|
||||
struct u_block {
|
||||
ivec2 inner;
|
||||
};
|
||||
|
||||
layout(binding = 0) uniform u_block_1 {
|
||||
layout(binding = 0) uniform u_block_ubo {
|
||||
ivec2 inner;
|
||||
} u;
|
||||
|
||||
|
||||
@@ -1,10 +1,6 @@
|
||||
#version 310 es
|
||||
|
||||
struct u_block {
|
||||
uvec3 inner;
|
||||
};
|
||||
|
||||
layout(binding = 0) uniform u_block_1 {
|
||||
layout(binding = 0) uniform u_block_ubo {
|
||||
uvec3 inner;
|
||||
} u;
|
||||
|
||||
|
||||
@@ -1,10 +1,6 @@
|
||||
#version 310 es
|
||||
|
||||
struct u_block {
|
||||
vec4 inner;
|
||||
};
|
||||
|
||||
layout(binding = 0) uniform u_block_1 {
|
||||
layout(binding = 0) uniform u_block_ubo {
|
||||
vec4 inner;
|
||||
} u;
|
||||
|
||||
|
||||
@@ -1,30 +1,6 @@
|
||||
#version 310 es
|
||||
|
||||
struct Uniforms {
|
||||
uint numTriangles;
|
||||
uint gridSize;
|
||||
uint puuuuuuuuuuuuuuuuad1;
|
||||
uint pad2;
|
||||
vec3 bbMin;
|
||||
vec3 bbMax;
|
||||
};
|
||||
|
||||
struct Dbg {
|
||||
uint offsetCounter;
|
||||
uint pad0;
|
||||
uint pad1;
|
||||
uint pad2;
|
||||
uint value0;
|
||||
uint value1;
|
||||
uint value2;
|
||||
uint value3;
|
||||
float value_f32_0;
|
||||
float value_f32_1;
|
||||
float value_f32_2;
|
||||
float value_f32_3;
|
||||
};
|
||||
|
||||
layout(binding = 0) uniform Uniforms_1 {
|
||||
layout(binding = 0) uniform Uniforms_ubo {
|
||||
uint numTriangles;
|
||||
uint gridSize;
|
||||
uint puuuuuuuuuuuuuuuuad1;
|
||||
@@ -33,19 +9,23 @@ layout(binding = 0) uniform Uniforms_1 {
|
||||
vec3 bbMax;
|
||||
} uniforms;
|
||||
|
||||
layout(binding = 10, std430) buffer U32s_1 {
|
||||
layout(binding = 10, std430) buffer U32s_ssbo {
|
||||
uint values[];
|
||||
} indices;
|
||||
layout(binding = 11, std430) buffer F32s_1 {
|
||||
|
||||
layout(binding = 11, std430) buffer F32s_ssbo {
|
||||
float values[];
|
||||
} positions;
|
||||
layout(binding = 20, std430) buffer AU32s_1 {
|
||||
|
||||
layout(binding = 20, std430) buffer AU32s_ssbo {
|
||||
uint values[];
|
||||
} counters;
|
||||
layout(binding = 21, std430) buffer AI32s_1 {
|
||||
|
||||
layout(binding = 21, std430) buffer AI32s_ssbo {
|
||||
int values[];
|
||||
} LUT;
|
||||
layout(binding = 50, std430) buffer Dbg_1 {
|
||||
|
||||
layout(binding = 50, std430) buffer Dbg_ssbo {
|
||||
uint offsetCounter;
|
||||
uint pad0;
|
||||
uint pad1;
|
||||
@@ -59,6 +39,7 @@ layout(binding = 50, std430) buffer Dbg_1 {
|
||||
float value_f32_2;
|
||||
float value_f32_3;
|
||||
} dbg;
|
||||
|
||||
vec3 toVoxelPos(vec3 position) {
|
||||
vec3 bbMin = vec3(uniforms.bbMin.x, uniforms.bbMin.y, uniforms.bbMin.z);
|
||||
vec3 bbMax = vec3(uniforms.bbMax.x, uniforms.bbMax.y, uniforms.bbMax.z);
|
||||
|
||||
@@ -4,9 +4,10 @@ struct S {
|
||||
float f;
|
||||
};
|
||||
|
||||
layout(binding = 0, std430) buffer arr_block_1 {
|
||||
layout(binding = 0, std430) buffer arr_block_ssbo {
|
||||
S inner[];
|
||||
} arr;
|
||||
|
||||
void tint_symbol() {
|
||||
uint len = uint(arr.inner.length());
|
||||
}
|
||||
|
||||
@@ -13,12 +13,7 @@ bug/dawn/947.wgsl:55:33 note: reading from user-defined input 'texcoord' may res
|
||||
#version 310 es
|
||||
|
||||
layout(location = 0) out vec2 texcoords_1;
|
||||
struct Uniforms {
|
||||
vec2 u_scale;
|
||||
vec2 u_offset;
|
||||
};
|
||||
|
||||
layout(binding = 0) uniform Uniforms_1 {
|
||||
layout(binding = 0) uniform Uniforms_ubo {
|
||||
vec2 u_scale;
|
||||
vec2 u_offset;
|
||||
} uniforms;
|
||||
|
||||
@@ -1,10 +1,6 @@
|
||||
#version 310 es
|
||||
|
||||
struct UBO {
|
||||
int dynamic_idx;
|
||||
};
|
||||
|
||||
layout(binding = 0) uniform UBO_1 {
|
||||
layout(binding = 0) uniform UBO_ubo {
|
||||
int dynamic_idx;
|
||||
} ubo;
|
||||
|
||||
@@ -12,13 +8,10 @@ struct S {
|
||||
int data[64];
|
||||
};
|
||||
|
||||
struct Result {
|
||||
int tint_symbol;
|
||||
};
|
||||
|
||||
layout(binding = 1, std430) buffer Result_1 {
|
||||
layout(binding = 1, std430) buffer Result_ssbo {
|
||||
int tint_symbol;
|
||||
} result;
|
||||
|
||||
void f() {
|
||||
S s = S(int[64](0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
|
||||
result.tint_symbol = s.data[ubo.dynamic_idx];
|
||||
|
||||
@@ -1,10 +1,6 @@
|
||||
#version 310 es
|
||||
|
||||
struct UBO {
|
||||
int dynamic_idx;
|
||||
};
|
||||
|
||||
layout(binding = 0) uniform UBO_1 {
|
||||
layout(binding = 0) uniform UBO_ubo {
|
||||
int dynamic_idx;
|
||||
} ubo;
|
||||
|
||||
@@ -12,13 +8,10 @@ struct S {
|
||||
int data[64];
|
||||
};
|
||||
|
||||
struct Result {
|
||||
int tint_symbol;
|
||||
};
|
||||
|
||||
layout(binding = 1, std430) buffer Result_1 {
|
||||
layout(binding = 1, std430) buffer Result_ssbo {
|
||||
int tint_symbol;
|
||||
} result;
|
||||
|
||||
S s = S(int[64](0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
|
||||
void f() {
|
||||
result.tint_symbol = s.data[ubo.dynamic_idx];
|
||||
|
||||
@@ -1,27 +1,17 @@
|
||||
#version 310 es
|
||||
|
||||
struct UBO {
|
||||
int dynamic_idx;
|
||||
};
|
||||
|
||||
layout(binding = 0) uniform UBO_1 {
|
||||
layout(binding = 0) uniform UBO_ubo {
|
||||
int dynamic_idx;
|
||||
} ubo;
|
||||
|
||||
struct Result {
|
||||
int tint_symbol;
|
||||
};
|
||||
|
||||
layout(binding = 2, std430) buffer Result_1 {
|
||||
layout(binding = 2, std430) buffer Result_ssbo {
|
||||
int tint_symbol;
|
||||
} result;
|
||||
struct SSBO {
|
||||
int data[4];
|
||||
};
|
||||
|
||||
layout(binding = 1, std430) buffer SSBO_1 {
|
||||
layout(binding = 1, std430) buffer SSBO_ssbo {
|
||||
int data[4];
|
||||
} ssbo;
|
||||
|
||||
void f() {
|
||||
result.tint_symbol = ssbo.data[ubo.dynamic_idx];
|
||||
}
|
||||
|
||||
@@ -1,22 +1,14 @@
|
||||
#version 310 es
|
||||
|
||||
struct UBO {
|
||||
ivec4 data[4];
|
||||
int dynamic_idx;
|
||||
};
|
||||
|
||||
layout(binding = 0) uniform UBO_1 {
|
||||
layout(binding = 0) uniform UBO_ubo {
|
||||
ivec4 data[4];
|
||||
int dynamic_idx;
|
||||
} ubo;
|
||||
|
||||
struct Result {
|
||||
int tint_symbol;
|
||||
};
|
||||
|
||||
layout(binding = 2, std430) buffer Result_1 {
|
||||
layout(binding = 2, std430) buffer Result_ssbo {
|
||||
int tint_symbol;
|
||||
} result;
|
||||
|
||||
void f() {
|
||||
result.tint_symbol = ubo.data[ubo.dynamic_idx].x;
|
||||
}
|
||||
|
||||
@@ -1,10 +1,6 @@
|
||||
#version 310 es
|
||||
|
||||
struct UBO {
|
||||
int dynamic_idx;
|
||||
};
|
||||
|
||||
layout(binding = 0) uniform UBO_1 {
|
||||
layout(binding = 0) uniform UBO_ubo {
|
||||
int dynamic_idx;
|
||||
} ubo;
|
||||
|
||||
@@ -12,13 +8,10 @@ struct S {
|
||||
int data[64];
|
||||
};
|
||||
|
||||
struct Result {
|
||||
int tint_symbol;
|
||||
};
|
||||
|
||||
layout(binding = 1, std430) buffer Result_1 {
|
||||
layout(binding = 1, std430) buffer Result_ssbo {
|
||||
int tint_symbol;
|
||||
} result;
|
||||
|
||||
shared S s;
|
||||
void f(uint local_invocation_index) {
|
||||
{
|
||||
|
||||
@@ -1,10 +1,6 @@
|
||||
#version 310 es
|
||||
|
||||
struct UBO {
|
||||
int dynamic_idx;
|
||||
};
|
||||
|
||||
layout(binding = 0) uniform UBO_1 {
|
||||
layout(binding = 0) uniform UBO_ubo {
|
||||
int dynamic_idx;
|
||||
} ubo;
|
||||
|
||||
@@ -12,13 +8,10 @@ struct S {
|
||||
int data[64];
|
||||
};
|
||||
|
||||
struct Result {
|
||||
int tint_symbol;
|
||||
};
|
||||
|
||||
layout(binding = 1, std430) buffer Result_1 {
|
||||
layout(binding = 1, std430) buffer Result_ssbo {
|
||||
int tint_symbol;
|
||||
} result;
|
||||
|
||||
void f() {
|
||||
S s = S(int[64](0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
|
||||
s.data[ubo.dynamic_idx] = 1;
|
||||
|
||||
@@ -1,10 +1,6 @@
|
||||
#version 310 es
|
||||
|
||||
struct UBO {
|
||||
int dynamic_idx;
|
||||
};
|
||||
|
||||
layout(binding = 0) uniform UBO_1 {
|
||||
layout(binding = 0) uniform UBO_ubo {
|
||||
int dynamic_idx;
|
||||
} ubo;
|
||||
|
||||
@@ -12,13 +8,10 @@ struct S {
|
||||
int data[64];
|
||||
};
|
||||
|
||||
struct Result {
|
||||
int tint_symbol;
|
||||
};
|
||||
|
||||
layout(binding = 1, std430) buffer Result_1 {
|
||||
layout(binding = 1, std430) buffer Result_ssbo {
|
||||
int tint_symbol;
|
||||
} result;
|
||||
|
||||
void x(inout S p) {
|
||||
p.data[ubo.dynamic_idx] = 1;
|
||||
}
|
||||
|
||||
@@ -1,10 +1,6 @@
|
||||
#version 310 es
|
||||
|
||||
struct UBO {
|
||||
int dynamic_idx;
|
||||
};
|
||||
|
||||
layout(binding = 0) uniform UBO_1 {
|
||||
layout(binding = 0) uniform UBO_ubo {
|
||||
int dynamic_idx;
|
||||
} ubo;
|
||||
|
||||
@@ -12,13 +8,10 @@ struct S {
|
||||
int data[64];
|
||||
};
|
||||
|
||||
struct Result {
|
||||
int tint_symbol;
|
||||
};
|
||||
|
||||
layout(binding = 1, std430) buffer Result_1 {
|
||||
layout(binding = 1, std430) buffer Result_ssbo {
|
||||
int tint_symbol;
|
||||
} result;
|
||||
|
||||
S s = S(int[64](0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
|
||||
void f() {
|
||||
s.data[ubo.dynamic_idx] = 1;
|
||||
|
||||
@@ -1,10 +1,6 @@
|
||||
#version 310 es
|
||||
|
||||
struct UBO {
|
||||
int dynamic_idx;
|
||||
};
|
||||
|
||||
layout(binding = 0) uniform UBO_1 {
|
||||
layout(binding = 0) uniform UBO_ubo {
|
||||
int dynamic_idx;
|
||||
} ubo;
|
||||
|
||||
@@ -12,13 +8,10 @@ struct S {
|
||||
int data[64];
|
||||
};
|
||||
|
||||
struct Result {
|
||||
int tint_symbol;
|
||||
};
|
||||
|
||||
layout(binding = 1, std430) buffer Result_1 {
|
||||
layout(binding = 1, std430) buffer Result_ssbo {
|
||||
int tint_symbol;
|
||||
} result;
|
||||
|
||||
S s = S(int[64](0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
|
||||
void x(inout S p) {
|
||||
p.data[ubo.dynamic_idx] = 1;
|
||||
|
||||
@@ -1,27 +1,17 @@
|
||||
#version 310 es
|
||||
|
||||
struct UBO {
|
||||
int dynamic_idx;
|
||||
};
|
||||
|
||||
layout(binding = 0) uniform UBO_1 {
|
||||
layout(binding = 0) uniform UBO_ubo {
|
||||
int dynamic_idx;
|
||||
} ubo;
|
||||
|
||||
struct Result {
|
||||
int tint_symbol;
|
||||
};
|
||||
|
||||
layout(binding = 2, std430) buffer Result_1 {
|
||||
layout(binding = 2, std430) buffer Result_ssbo {
|
||||
int tint_symbol;
|
||||
} result;
|
||||
struct SSBO {
|
||||
int data[4];
|
||||
};
|
||||
|
||||
layout(binding = 1, std430) buffer SSBO_1 {
|
||||
layout(binding = 1, std430) buffer SSBO_ssbo {
|
||||
int data[4];
|
||||
} ssbo;
|
||||
|
||||
void f() {
|
||||
ssbo.data[ubo.dynamic_idx] = 1;
|
||||
result.tint_symbol = ssbo.data[3];
|
||||
|
||||
@@ -1,10 +1,6 @@
|
||||
#version 310 es
|
||||
|
||||
struct UBO {
|
||||
int dynamic_idx;
|
||||
};
|
||||
|
||||
layout(binding = 0) uniform UBO_1 {
|
||||
layout(binding = 0) uniform UBO_ubo {
|
||||
int dynamic_idx;
|
||||
} ubo;
|
||||
|
||||
@@ -12,13 +8,10 @@ struct S {
|
||||
int data[64];
|
||||
};
|
||||
|
||||
struct Result {
|
||||
int tint_symbol;
|
||||
};
|
||||
|
||||
layout(binding = 1, std430) buffer Result_1 {
|
||||
layout(binding = 1, std430) buffer Result_ssbo {
|
||||
int tint_symbol;
|
||||
} result;
|
||||
|
||||
shared S s;
|
||||
void f(uint local_invocation_index) {
|
||||
{
|
||||
|
||||
@@ -1,9 +1,5 @@
|
||||
#version 310 es
|
||||
|
||||
struct Simulation {
|
||||
uint i;
|
||||
};
|
||||
|
||||
struct Particle {
|
||||
vec3 position[8];
|
||||
float lifetime;
|
||||
@@ -11,10 +7,11 @@ struct Particle {
|
||||
vec3 velocity;
|
||||
};
|
||||
|
||||
layout(binding = 3, std430) buffer Particles_1 {
|
||||
layout(binding = 3, std430) buffer Particles_ssbo {
|
||||
Particle p[];
|
||||
} particles;
|
||||
layout(binding = 4) uniform Simulation_1 {
|
||||
|
||||
layout(binding = 4) uniform Simulation_ubo {
|
||||
uint i;
|
||||
} sim;
|
||||
|
||||
|
||||
@@ -1,11 +1,6 @@
|
||||
#version 310 es
|
||||
|
||||
struct Uniforms {
|
||||
uint i;
|
||||
uint j;
|
||||
};
|
||||
|
||||
layout(binding = 4) uniform Uniforms_1 {
|
||||
layout(binding = 4) uniform Uniforms_ubo {
|
||||
uint i;
|
||||
uint j;
|
||||
} uniforms;
|
||||
|
||||
@@ -1,11 +1,6 @@
|
||||
#version 310 es
|
||||
|
||||
struct Uniforms {
|
||||
uint i;
|
||||
uint j;
|
||||
};
|
||||
|
||||
layout(binding = 4) uniform Uniforms_1 {
|
||||
layout(binding = 4) uniform Uniforms_ubo {
|
||||
uint i;
|
||||
uint j;
|
||||
} uniforms;
|
||||
|
||||
@@ -1,11 +1,6 @@
|
||||
#version 310 es
|
||||
|
||||
struct Uniforms {
|
||||
uint i;
|
||||
uint j;
|
||||
};
|
||||
|
||||
layout(binding = 4) uniform Uniforms_1 {
|
||||
layout(binding = 4) uniform Uniforms_ubo {
|
||||
uint i;
|
||||
uint j;
|
||||
} uniforms;
|
||||
|
||||
@@ -1,11 +1,6 @@
|
||||
#version 310 es
|
||||
|
||||
struct Uniforms {
|
||||
uint i;
|
||||
uint j;
|
||||
};
|
||||
|
||||
layout(binding = 4) uniform Uniforms_1 {
|
||||
layout(binding = 4) uniform Uniforms_ubo {
|
||||
uint i;
|
||||
uint j;
|
||||
} uniforms;
|
||||
|
||||
@@ -1,11 +1,6 @@
|
||||
#version 310 es
|
||||
|
||||
struct Uniforms {
|
||||
uint i;
|
||||
uint j;
|
||||
};
|
||||
|
||||
layout(binding = 4) uniform Uniforms_1 {
|
||||
layout(binding = 4) uniform Uniforms_ubo {
|
||||
uint i;
|
||||
uint j;
|
||||
} uniforms;
|
||||
|
||||
@@ -1,11 +1,6 @@
|
||||
#version 310 es
|
||||
|
||||
struct Uniforms {
|
||||
uint i;
|
||||
uint j;
|
||||
};
|
||||
|
||||
layout(binding = 4) uniform Uniforms_1 {
|
||||
layout(binding = 4) uniform Uniforms_ubo {
|
||||
uint i;
|
||||
uint j;
|
||||
} uniforms;
|
||||
|
||||
@@ -1,11 +1,6 @@
|
||||
#version 310 es
|
||||
|
||||
struct Uniforms {
|
||||
uint i;
|
||||
uint j;
|
||||
};
|
||||
|
||||
layout(binding = 4) uniform Uniforms_1 {
|
||||
layout(binding = 4) uniform Uniforms_ubo {
|
||||
uint i;
|
||||
uint j;
|
||||
} uniforms;
|
||||
|
||||
@@ -1,11 +1,6 @@
|
||||
#version 310 es
|
||||
|
||||
struct Uniforms {
|
||||
uint i;
|
||||
uint j;
|
||||
};
|
||||
|
||||
layout(binding = 4) uniform Uniforms_1 {
|
||||
layout(binding = 4) uniform Uniforms_ubo {
|
||||
uint i;
|
||||
uint j;
|
||||
} uniforms;
|
||||
|
||||
@@ -10,15 +10,7 @@ struct PointLight {
|
||||
vec4 position;
|
||||
};
|
||||
|
||||
struct Uniforms {
|
||||
mat4 worldView;
|
||||
mat4 proj;
|
||||
uint numPointLights;
|
||||
uint color_source;
|
||||
vec4 color;
|
||||
};
|
||||
|
||||
layout(binding = 0) uniform Uniforms_1 {
|
||||
layout(binding = 0) uniform Uniforms_ubo {
|
||||
mat4 worldView;
|
||||
mat4 proj;
|
||||
uint numPointLights;
|
||||
@@ -26,9 +18,10 @@ layout(binding = 0) uniform Uniforms_1 {
|
||||
vec4 color;
|
||||
} uniforms;
|
||||
|
||||
layout(binding = 1, std430) buffer PointLights_1 {
|
||||
layout(binding = 1, std430) buffer PointLights_ssbo {
|
||||
PointLight values[];
|
||||
} pointLights;
|
||||
|
||||
struct FragmentInput {
|
||||
vec4 position;
|
||||
vec4 view_position;
|
||||
|
||||
@@ -2,11 +2,7 @@
|
||||
precision mediump float;
|
||||
|
||||
layout(location = 0) out vec4 x_GLF_color_1_1;
|
||||
struct buf0 {
|
||||
vec4 ref;
|
||||
};
|
||||
|
||||
layout(binding = 0) uniform buf0_1 {
|
||||
layout(binding = 0) uniform buf0_ubo {
|
||||
vec4 ref;
|
||||
} x_7;
|
||||
|
||||
|
||||
@@ -8,15 +8,8 @@ struct strided_arr {
|
||||
float el;
|
||||
};
|
||||
|
||||
struct LeftOver {
|
||||
mat4 worldViewProjection;
|
||||
float time;
|
||||
mat4 test2[2];
|
||||
strided_arr test[4];
|
||||
};
|
||||
|
||||
vec3 position = vec3(0.0f, 0.0f, 0.0f);
|
||||
layout(binding = 2) uniform LeftOver_1 {
|
||||
layout(binding = 2) uniform LeftOver_ubo {
|
||||
mat4 worldViewProjection;
|
||||
float time;
|
||||
mat4 test2[2];
|
||||
|
||||
@@ -1,30 +1,6 @@
|
||||
#version 310 es
|
||||
|
||||
struct Uniforms {
|
||||
uint numTriangles;
|
||||
uint gridSize;
|
||||
uint pad1;
|
||||
uint pad2;
|
||||
vec3 bbMin;
|
||||
vec3 bbMax;
|
||||
};
|
||||
|
||||
struct Dbg {
|
||||
uint offsetCounter;
|
||||
uint pad0;
|
||||
uint pad1;
|
||||
uint pad2;
|
||||
uint value0;
|
||||
uint value1;
|
||||
uint value2;
|
||||
uint value3;
|
||||
float value_f32_0;
|
||||
float value_f32_1;
|
||||
float value_f32_2;
|
||||
float value_f32_3;
|
||||
};
|
||||
|
||||
layout(binding = 0) uniform Uniforms_1 {
|
||||
layout(binding = 0) uniform Uniforms_ubo {
|
||||
uint numTriangles;
|
||||
uint gridSize;
|
||||
uint pad1;
|
||||
@@ -33,19 +9,23 @@ layout(binding = 0) uniform Uniforms_1 {
|
||||
vec3 bbMax;
|
||||
} uniforms;
|
||||
|
||||
layout(binding = 10, std430) buffer U32s_1 {
|
||||
layout(binding = 10, std430) buffer U32s_ssbo {
|
||||
uint values[];
|
||||
} indices;
|
||||
layout(binding = 11, std430) buffer F32s_1 {
|
||||
|
||||
layout(binding = 11, std430) buffer F32s_ssbo {
|
||||
float values[];
|
||||
} positions;
|
||||
layout(binding = 20, std430) buffer AU32s_1 {
|
||||
|
||||
layout(binding = 20, std430) buffer AU32s_ssbo {
|
||||
uint values[];
|
||||
} counters;
|
||||
layout(binding = 21, std430) buffer AI32s_1 {
|
||||
|
||||
layout(binding = 21, std430) buffer AI32s_ssbo {
|
||||
int values[];
|
||||
} LUT;
|
||||
layout(binding = 50, std430) buffer Dbg_1 {
|
||||
|
||||
layout(binding = 50, std430) buffer Dbg_ssbo {
|
||||
uint offsetCounter;
|
||||
uint pad0;
|
||||
uint pad1;
|
||||
@@ -59,6 +39,7 @@ layout(binding = 50, std430) buffer Dbg_1 {
|
||||
float value_f32_2;
|
||||
float value_f32_3;
|
||||
} dbg;
|
||||
|
||||
vec3 toVoxelPos(vec3 position) {
|
||||
vec3 bbMin = vec3(uniforms.bbMin.x, uniforms.bbMin.y, uniforms.bbMin.z);
|
||||
vec3 bbMax = vec3(uniforms.bbMax.x, uniforms.bbMax.y, uniforms.bbMax.z);
|
||||
@@ -121,31 +102,7 @@ void main() {
|
||||
}
|
||||
#version 310 es
|
||||
|
||||
struct Uniforms {
|
||||
uint numTriangles;
|
||||
uint gridSize;
|
||||
uint pad1;
|
||||
uint pad2;
|
||||
vec3 bbMin;
|
||||
vec3 bbMax;
|
||||
};
|
||||
|
||||
struct Dbg {
|
||||
uint offsetCounter;
|
||||
uint pad0;
|
||||
uint pad1;
|
||||
uint pad2;
|
||||
uint value0;
|
||||
uint value1;
|
||||
uint value2;
|
||||
uint value3;
|
||||
float value_f32_0;
|
||||
float value_f32_1;
|
||||
float value_f32_2;
|
||||
float value_f32_3;
|
||||
};
|
||||
|
||||
layout(binding = 0) uniform Uniforms_1 {
|
||||
layout(binding = 0) uniform Uniforms_ubo {
|
||||
uint numTriangles;
|
||||
uint gridSize;
|
||||
uint pad1;
|
||||
@@ -154,19 +111,23 @@ layout(binding = 0) uniform Uniforms_1 {
|
||||
vec3 bbMax;
|
||||
} uniforms;
|
||||
|
||||
layout(binding = 10, std430) buffer U32s_1 {
|
||||
layout(binding = 10, std430) buffer U32s_ssbo {
|
||||
uint values[];
|
||||
} indices;
|
||||
layout(binding = 11, std430) buffer F32s_1 {
|
||||
|
||||
layout(binding = 11, std430) buffer F32s_ssbo {
|
||||
float values[];
|
||||
} positions;
|
||||
layout(binding = 20, std430) buffer AU32s_1 {
|
||||
|
||||
layout(binding = 20, std430) buffer AU32s_ssbo {
|
||||
uint values[];
|
||||
} counters;
|
||||
layout(binding = 21, std430) buffer AI32s_1 {
|
||||
|
||||
layout(binding = 21, std430) buffer AI32s_ssbo {
|
||||
int values[];
|
||||
} LUT;
|
||||
layout(binding = 50, std430) buffer Dbg_1 {
|
||||
|
||||
layout(binding = 50, std430) buffer Dbg_ssbo {
|
||||
uint offsetCounter;
|
||||
uint pad0;
|
||||
uint pad1;
|
||||
@@ -180,6 +141,7 @@ layout(binding = 50, std430) buffer Dbg_1 {
|
||||
float value_f32_2;
|
||||
float value_f32_3;
|
||||
} dbg;
|
||||
|
||||
void doIgnore() {
|
||||
uint g42 = uniforms.numTriangles;
|
||||
uint kj6 = dbg.value1;
|
||||
@@ -212,31 +174,7 @@ void main() {
|
||||
}
|
||||
#version 310 es
|
||||
|
||||
struct Uniforms {
|
||||
uint numTriangles;
|
||||
uint gridSize;
|
||||
uint pad1;
|
||||
uint pad2;
|
||||
vec3 bbMin;
|
||||
vec3 bbMax;
|
||||
};
|
||||
|
||||
struct Dbg {
|
||||
uint offsetCounter;
|
||||
uint pad0;
|
||||
uint pad1;
|
||||
uint pad2;
|
||||
uint value0;
|
||||
uint value1;
|
||||
uint value2;
|
||||
uint value3;
|
||||
float value_f32_0;
|
||||
float value_f32_1;
|
||||
float value_f32_2;
|
||||
float value_f32_3;
|
||||
};
|
||||
|
||||
layout(binding = 0) uniform Uniforms_1 {
|
||||
layout(binding = 0) uniform Uniforms_ubo {
|
||||
uint numTriangles;
|
||||
uint gridSize;
|
||||
uint pad1;
|
||||
@@ -245,19 +183,23 @@ layout(binding = 0) uniform Uniforms_1 {
|
||||
vec3 bbMax;
|
||||
} uniforms;
|
||||
|
||||
layout(binding = 10, std430) buffer U32s_1 {
|
||||
layout(binding = 10, std430) buffer U32s_ssbo {
|
||||
uint values[];
|
||||
} indices;
|
||||
layout(binding = 11, std430) buffer F32s_1 {
|
||||
|
||||
layout(binding = 11, std430) buffer F32s_ssbo {
|
||||
float values[];
|
||||
} positions;
|
||||
layout(binding = 20, std430) buffer AU32s_1 {
|
||||
|
||||
layout(binding = 20, std430) buffer AU32s_ssbo {
|
||||
uint values[];
|
||||
} counters;
|
||||
layout(binding = 21, std430) buffer AI32s_1 {
|
||||
|
||||
layout(binding = 21, std430) buffer AI32s_ssbo {
|
||||
int values[];
|
||||
} LUT;
|
||||
layout(binding = 50, std430) buffer Dbg_1 {
|
||||
|
||||
layout(binding = 50, std430) buffer Dbg_ssbo {
|
||||
uint offsetCounter;
|
||||
uint pad0;
|
||||
uint pad1;
|
||||
@@ -271,6 +213,7 @@ layout(binding = 50, std430) buffer Dbg_1 {
|
||||
float value_f32_2;
|
||||
float value_f32_3;
|
||||
} dbg;
|
||||
|
||||
vec3 toVoxelPos(vec3 position) {
|
||||
vec3 bbMin = vec3(uniforms.bbMin.x, uniforms.bbMin.y, uniforms.bbMin.z);
|
||||
vec3 bbMax = vec3(uniforms.bbMax.x, uniforms.bbMax.y, uniforms.bbMax.z);
|
||||
|
||||
@@ -16,29 +16,13 @@ precision mediump float;
|
||||
layout(location = 2) in float fClipDistance3_param_1;
|
||||
layout(location = 3) in float fClipDistance4_param_1;
|
||||
layout(location = 0) out vec4 glFragColor_1_1;
|
||||
struct Scene {
|
||||
vec4 vEyePosition;
|
||||
};
|
||||
|
||||
struct Material {
|
||||
vec4 vDiffuseColor;
|
||||
vec3 vAmbientColor;
|
||||
float placeholder;
|
||||
vec3 vEmissiveColor;
|
||||
float placeholder2;
|
||||
};
|
||||
|
||||
struct Mesh {
|
||||
float visibility;
|
||||
};
|
||||
|
||||
float fClipDistance3 = 0.0f;
|
||||
float fClipDistance4 = 0.0f;
|
||||
layout(binding = 0) uniform Scene_1 {
|
||||
layout(binding = 0) uniform Scene_ubo {
|
||||
vec4 vEyePosition;
|
||||
} x_29;
|
||||
|
||||
layout(binding = 1) uniform Material_1 {
|
||||
layout(binding = 1) uniform Material_ubo {
|
||||
vec4 vDiffuseColor;
|
||||
vec3 vAmbientColor;
|
||||
float placeholder;
|
||||
@@ -46,7 +30,7 @@ layout(binding = 1) uniform Material_1 {
|
||||
float placeholder2;
|
||||
} x_49;
|
||||
|
||||
layout(binding = 2) uniform Mesh_1 {
|
||||
layout(binding = 2) uniform Mesh_ubo {
|
||||
float visibility;
|
||||
} x_137;
|
||||
|
||||
|
||||
@@ -6,31 +6,20 @@ struct LightData {
|
||||
float radius;
|
||||
};
|
||||
|
||||
layout(binding = 0, std430) buffer LightsBuffer_1 {
|
||||
layout(binding = 0, std430) buffer LightsBuffer_ssbo {
|
||||
LightData lights[];
|
||||
} lightsBuffer;
|
||||
|
||||
struct TileLightIdData {
|
||||
uint count;
|
||||
uint lightId[64];
|
||||
};
|
||||
|
||||
struct Tiles {
|
||||
TileLightIdData data[4];
|
||||
};
|
||||
|
||||
layout(binding = 0, std430) buffer Tiles_1 {
|
||||
layout(binding = 0, std430) buffer Tiles_ssbo {
|
||||
TileLightIdData data[4];
|
||||
} tileLightId;
|
||||
struct Config {
|
||||
uint numLights;
|
||||
uint numTiles;
|
||||
uint tileCountX;
|
||||
uint tileCountY;
|
||||
uint numTileLightSlot;
|
||||
uint tileSize;
|
||||
};
|
||||
|
||||
layout(binding = 0) uniform Config_1 {
|
||||
layout(binding = 0) uniform Config_ubo {
|
||||
uint numLights;
|
||||
uint numTiles;
|
||||
uint tileCountX;
|
||||
@@ -39,15 +28,7 @@ layout(binding = 0) uniform Config_1 {
|
||||
uint tileSize;
|
||||
} config;
|
||||
|
||||
struct Uniforms {
|
||||
vec4 tint_symbol;
|
||||
vec4 tint_symbol_1;
|
||||
mat4 viewMatrix;
|
||||
mat4 projectionMatrix;
|
||||
vec4 fullScreenSize;
|
||||
};
|
||||
|
||||
layout(binding = 0) uniform Uniforms_1 {
|
||||
layout(binding = 0) uniform Uniforms_ubo {
|
||||
vec4 tint_symbol;
|
||||
vec4 tint_symbol_1;
|
||||
mat4 viewMatrix;
|
||||
|
||||
@@ -4,13 +4,10 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
|
||||
void unused_entry_point() {
|
||||
return;
|
||||
}
|
||||
struct Buffer {
|
||||
uint data;
|
||||
};
|
||||
|
||||
layout(binding = 0, std430) buffer Buffer_1 {
|
||||
layout(binding = 0, std430) buffer Buffer_ssbo {
|
||||
uint data;
|
||||
} tint_symbol;
|
||||
|
||||
void tint_symbol_1() {
|
||||
tint_symbol.data = (tint_symbol.data + 1u);
|
||||
}
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
#version 310 es
|
||||
|
||||
layout(binding = 1, std430) buffer data_block_1 {
|
||||
layout(binding = 1, std430) buffer data_block_ssbo {
|
||||
int inner[];
|
||||
} data;
|
||||
|
||||
int foo() {
|
||||
return data.inner[0];
|
||||
}
|
||||
|
||||
@@ -3,14 +3,7 @@ precision mediump float;
|
||||
|
||||
layout(location = 0) in vec4 vcolor_S0_param_1;
|
||||
layout(location = 0) out vec4 sk_FragColor_1_1;
|
||||
struct UniformBuffer {
|
||||
float unknownInput_S1_c0;
|
||||
vec4 ucolorRed_S1_c0;
|
||||
vec4 ucolorGreen_S1_c0;
|
||||
mat3 umatrix_S1;
|
||||
};
|
||||
|
||||
layout(binding = 0) uniform UniformBuffer_1 {
|
||||
layout(binding = 0) uniform UniformBuffer_ubo {
|
||||
float unknownInput_S1_c0;
|
||||
vec4 ucolorRed_S1_c0;
|
||||
vec4 ucolorGreen_S1_c0;
|
||||
|
||||
@@ -6,13 +6,10 @@ struct atomic_compare_exchange_resultu32 {
|
||||
};
|
||||
|
||||
|
||||
struct a_block {
|
||||
uint inner;
|
||||
};
|
||||
|
||||
layout(binding = 0, std430) buffer a_block_1 {
|
||||
layout(binding = 0, std430) buffer a_block_ssbo {
|
||||
uint inner;
|
||||
} a;
|
||||
|
||||
void tint_symbol() {
|
||||
uint value = 42u;
|
||||
atomic_compare_exchange_resultu32 atomic_compare_result;
|
||||
|
||||
@@ -11,20 +11,14 @@ struct atomic_compare_exchange_resulti32 {
|
||||
};
|
||||
|
||||
|
||||
struct a_u32_block {
|
||||
uint inner;
|
||||
};
|
||||
|
||||
layout(binding = 0, std430) buffer a_u32_block_1 {
|
||||
layout(binding = 0, std430) buffer a_u32_block_ssbo {
|
||||
uint inner;
|
||||
} a_u32;
|
||||
struct a_i32_block {
|
||||
int inner;
|
||||
};
|
||||
|
||||
layout(binding = 1, std430) buffer a_i32_block_1 {
|
||||
layout(binding = 1, std430) buffer a_i32_block_ssbo {
|
||||
int inner;
|
||||
} a_i32;
|
||||
|
||||
shared uint b_u32;
|
||||
shared int b_i32;
|
||||
void tint_symbol(uint local_invocation_index) {
|
||||
|
||||
@@ -1,14 +1,10 @@
|
||||
#version 310 es
|
||||
|
||||
struct Buf {
|
||||
uint count;
|
||||
uint data[50];
|
||||
};
|
||||
|
||||
layout(binding = 0, std430) buffer Buf_1 {
|
||||
layout(binding = 0, std430) buffer Buf_ssbo {
|
||||
uint count;
|
||||
uint data[50];
|
||||
} b;
|
||||
|
||||
void tint_symbol() {
|
||||
uint i = 0u;
|
||||
while (true) {
|
||||
|
||||
@@ -9,6 +9,7 @@ struct Light {
|
||||
vec3 colour;
|
||||
};
|
||||
|
||||
layout(binding = 1, std430) buffer Lights_1 {
|
||||
layout(binding = 1, std430) buffer Lights_ssbo {
|
||||
Light light[];
|
||||
} lights;
|
||||
|
||||
|
||||
@@ -4,19 +4,11 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
|
||||
void unused_entry_point() {
|
||||
return;
|
||||
}
|
||||
struct S {
|
||||
mat2 m;
|
||||
};
|
||||
|
||||
struct S_std140 {
|
||||
vec2 m_0;
|
||||
vec2 m_1;
|
||||
};
|
||||
|
||||
layout(binding = 0, std430) buffer S_1 {
|
||||
layout(binding = 0, std430) buffer S_ssbo {
|
||||
mat2 m;
|
||||
} SSBO;
|
||||
layout(binding = 0) uniform S_std140_1 {
|
||||
|
||||
layout(binding = 0) uniform S_std140_ubo {
|
||||
vec2 m_0;
|
||||
vec2 m_1;
|
||||
} UBO;
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user