SPIRV-Cross/reference/shaders-reflection/frag/spec-constant.vk.frag.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

82 lines
1.8 KiB
JSON

{
"entryPoints" : [
{
"name" : "main",
"mode" : "frag"
}
],
"types" : {
"_137" : {
"name" : "Foo",
"members" : [
{
"name" : "elems",
"type" : "float",
"array" : [
135
],
"array_size_is_literal" : [
false
]
}
]
}
},
"outputs" : [
{
"type" : "vec4",
"name" : "FragColor",
"location" : 0
}
],
"specialization_constants" : [
{
"id" : 1,
"type" : "float",
"variable_id" : 9,
"default_value" : 1.5
},
{
"id" : 2,
"type" : "float",
"variable_id" : 11,
"default_value" : 2.5
},
{
"id" : 3,
"type" : "int",
"variable_id" : 16,
"default_value" : 3
},
{
"id" : 4,
"type" : "int",
"variable_id" : 25,
"default_value" : 4
},
{
"id" : 5,
"type" : "uint",
"variable_id" : 34,
"default_value" : 5
},
{
"id" : 6,
"type" : "uint",
"variable_id" : 35,
"default_value" : 6
},
{
"id" : 7,
"type" : "bool",
"variable_id" : 56,
"default_value" : false
},
{
"id" : 8,
"type" : "bool",
"variable_id" : 57,
"default_value" : true
}
]
}