SPIRV-Cross/reference/shaders-reflection/comp/workgroup-size-spec-constant.comp.json
Hans-Kristian Arntzen 18e24c3ca2 Reflection: Emit reflection information for array size literalness.
If not literal, check specialization_constant entries for "variable_id"
to link up ID with spec constant values. This maps directly to C++ API.
2020-01-15 16:49:19 +01:00

59 lines
1.2 KiB
JSON

{
"entryPoints" : [
{
"name" : "main",
"mode" : "comp",
"workgroup_size" : [
10,
40,
60
],
"workgroup_size_is_spec_constant_id" : [
true,
true,
true
]
}
],
"types" : {
"_8" : {
"name" : "SSBO",
"members" : [
{
"name" : "v",
"type" : "vec4",
"offset" : 0
}
]
}
},
"ssbos" : [
{
"type" : "_8",
"name" : "SSBO",
"block_size" : 16,
"set" : 0,
"binding" : 0
}
],
"specialization_constants" : [
{
"id" : 10,
"type" : "uint",
"variable_id" : 18,
"default_value" : 1
},
{
"id" : 40,
"type" : "uint",
"variable_id" : 19,
"default_value" : 1
},
{
"id" : 60,
"type" : "uint",
"variable_id" : 20,
"default_value" : 1
}
]
}