SPIRV-Cross/reference/shaders-reflection/comp/struct-packing.comp.json

484 lines
13 KiB
JSON
Raw Normal View History

{
"entryPoints" : [
{
"name" : "main",
"mode" : "comp",
"workgroup_size" : [
1,
1,
1
],
"workgroup_size_is_spec_constant_id" : [
false,
false,
false
]
}
],
"types" : {
2018-06-21 16:24:22 +00:00
"_11" : {
"name" : "S0",
"members" : [
{
"name" : "a",
"type" : "vec2",
"array" : [
1
],
"offset" : 0
},
{
"name" : "b",
"type" : "float",
"offset" : 8
}
]
},
2018-06-21 16:24:22 +00:00
"_14" : {
"name" : "S1",
"members" : [
{
"name" : "a",
"type" : "vec3",
"offset" : 0
},
{
"name" : "b",
"type" : "float",
"offset" : 12
}
]
},
2018-06-21 16:24:22 +00:00
"_17" : {
"name" : "S2",
"members" : [
{
"name" : "a",
"type" : "vec3",
"array" : [
1
],
"offset" : 0
},
{
"name" : "b",
"type" : "float",
"offset" : 16
}
]
},
2018-06-21 16:24:22 +00:00
"_19" : {
"name" : "S3",
"members" : [
{
"name" : "a",
"type" : "vec2",
"offset" : 0
},
{
"name" : "b",
"type" : "float",
"offset" : 8
}
]
},
2018-06-21 16:24:22 +00:00
"_20" : {
"name" : "S4",
"members" : [
{
"name" : "c",
"type" : "vec2",
"offset" : 0
}
]
},
2018-06-21 16:24:22 +00:00
"_23" : {
"name" : "Content",
"members" : [
{
"name" : "m0s",
2018-06-21 16:24:22 +00:00
"type" : "_11",
"array" : [
1
],
"offset" : 0
},
{
"name" : "m1s",
2018-06-21 16:24:22 +00:00
"type" : "_14",
"array" : [
1
],
"offset" : 16
},
{
"name" : "m2s",
2018-06-21 16:24:22 +00:00
"type" : "_17",
"array" : [
1
],
"offset" : 32
},
{
"name" : "m0",
2018-06-21 16:24:22 +00:00
"type" : "_11",
"offset" : 64
},
{
"name" : "m1",
2018-06-21 16:24:22 +00:00
"type" : "_14",
"offset" : 80
},
{
"name" : "m2",
2018-06-21 16:24:22 +00:00
"type" : "_17",
"offset" : 96
},
{
"name" : "m3",
2018-06-21 16:24:22 +00:00
"type" : "_19",
"offset" : 128
},
{
"name" : "m4",
"type" : "float",
"offset" : 144
},
{
"name" : "m3s",
2018-06-21 16:24:22 +00:00
"type" : "_20",
"array" : [
8
],
"offset" : 152
}
]
},
2018-06-21 16:24:22 +00:00
"_36" : {
"name" : "SSBO1",
"members" : [
{
"name" : "content",
2018-06-21 16:24:22 +00:00
"type" : "_23",
"offset" : 0
},
{
"name" : "content1",
2018-06-21 16:24:22 +00:00
"type" : "_23",
"array" : [
2
],
"offset" : 224
},
{
"name" : "content2",
2018-06-21 16:24:22 +00:00
"type" : "_23",
"offset" : 672
},
{
"name" : "m0",
"type" : "mat2",
"offset" : 896
},
{
"name" : "m1",
"type" : "mat2",
"offset" : 912
},
{
"name" : "m2",
"type" : "mat2x3",
"array" : [
4
],
"offset" : 928
},
{
"name" : "m3",
"type" : "mat3x2",
"offset" : 1056
},
{
"name" : "m4",
"type" : "mat2",
"row_major" : true,
"offset" : 1080
},
{
"name" : "m5",
"type" : "mat2",
"row_major" : true,
"array" : [
9
],
"offset" : 1096
},
{
"name" : "m6",
"type" : "mat2x3",
"row_major" : true,
"array" : [
2,
4
],
"offset" : 1240
},
{
"name" : "m7",
"type" : "mat3x2",
"row_major" : true,
"offset" : 1440
},
{
"name" : "array",
"type" : "float",
"array" : [
0
],
"offset" : 1472
}
]
},
2018-06-21 16:24:22 +00:00
"_42" : {
"name" : "S0",
"members" : [
{
"name" : "a",
"type" : "vec2",
"array" : [
1
],
"offset" : 0
},
{
"name" : "b",
"type" : "float",
"offset" : 16
}
]
},
2018-06-21 16:24:22 +00:00
"_44" : {
"name" : "S1",
"members" : [
{
"name" : "a",
"type" : "vec3",
"offset" : 0
},
{
"name" : "b",
"type" : "float",
"offset" : 12
}
]
},
2018-06-21 16:24:22 +00:00
"_47" : {
"name" : "S2",
"members" : [
{
"name" : "a",
"type" : "vec3",
"array" : [
1
],
"offset" : 0
},
{
"name" : "b",
"type" : "float",
"offset" : 16
}
]
},
2018-06-21 16:24:22 +00:00
"_49" : {
"name" : "S3",
"members" : [
{
"name" : "a",
"type" : "vec2",
"offset" : 0
},
{
"name" : "b",
"type" : "float",
"offset" : 8
}
]
},
2018-06-21 16:24:22 +00:00
"_50" : {
"name" : "S4",
"members" : [
{
"name" : "c",
"type" : "vec2",
"offset" : 0
}
]
},
2018-06-21 16:24:22 +00:00
"_52" : {
"name" : "Content",
"members" : [
{
"name" : "m0s",
2018-06-21 16:24:22 +00:00
"type" : "_42",
"array" : [
1
],
"offset" : 0
},
{
"name" : "m1s",
2018-06-21 16:24:22 +00:00
"type" : "_44",
"array" : [
1
],
"offset" : 32
},
{
"name" : "m2s",
2018-06-21 16:24:22 +00:00
"type" : "_47",
"array" : [
1
],
"offset" : 48
},
{
"name" : "m0",
2018-06-21 16:24:22 +00:00
"type" : "_42",
"offset" : 80
},
{
"name" : "m1",
2018-06-21 16:24:22 +00:00
"type" : "_44",
"offset" : 112
},
{
"name" : "m2",
2018-06-21 16:24:22 +00:00
"type" : "_47",
"offset" : 128
},
{
"name" : "m3",
2018-06-21 16:24:22 +00:00
"type" : "_49",
"offset" : 160
},
{
"name" : "m4",
"type" : "float",
"offset" : 176
},
{
"name" : "m3s",
2018-06-21 16:24:22 +00:00
"type" : "_50",
"array" : [
8
],
"offset" : 192
}
]
},
2018-06-21 16:24:22 +00:00
"_59" : {
"name" : "SSBO0",
"members" : [
{
"name" : "content",
2018-06-21 16:24:22 +00:00
"type" : "_52",
"offset" : 0
},
{
"name" : "content1",
2018-06-21 16:24:22 +00:00
"type" : "_52",
"array" : [
2
],
"offset" : 320
},
{
"name" : "content2",
2018-06-21 16:24:22 +00:00
"type" : "_52",
"offset" : 960
},
{
"name" : "m0",
"type" : "mat2",
"offset" : 1280
},
{
"name" : "m1",
"type" : "mat2",
"offset" : 1312
},
{
"name" : "m2",
"type" : "mat2x3",
"array" : [
4
],
"offset" : 1344
},
{
"name" : "m3",
"type" : "mat3x2",
"offset" : 1472
},
{
"name" : "m4",
"type" : "mat2",
"row_major" : true,
"offset" : 1520
},
{
"name" : "m5",
"type" : "mat2",
"row_major" : true,
"array" : [
9
],
"offset" : 1552
},
{
"name" : "m6",
"type" : "mat2x3",
"row_major" : true,
"array" : [
2,
4
],
"offset" : 1840
},
{
"name" : "m7",
"type" : "mat3x2",
"row_major" : true,
"offset" : 2224
},
{
"name" : "array",
"type" : "float",
"array" : [
0
],
"offset" : 2256
}
]
}
},
"ssbos" : [
{
2018-06-21 16:24:22 +00:00
"type" : "_36",
"name" : "SSBO1",
"restrict" : true,
"block_size" : 1472,
"set" : 0,
"binding" : 1
},
{
2018-06-21 16:24:22 +00:00
"type" : "_59",
"name" : "SSBO0",
"restrict" : true,
"block_size" : 2256,
"set" : 0,
"binding" : 0
}
]
}