18e24c3ca2
If not literal, check specialization_constant entries for "variable_id" to link up ID with spec constant values. This maps directly to C++ API.
59 lines
1.2 KiB
JSON
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
|
|
}
|
|
]
|
|
} |