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.
85 lines
1.7 KiB
JSON
85 lines
1.7 KiB
JSON
{
|
|
"entryPoints" : [
|
|
{
|
|
"name" : "main",
|
|
"mode" : "frag"
|
|
}
|
|
],
|
|
"inputs" : [
|
|
{
|
|
"type" : "vec2",
|
|
"name" : "vTex",
|
|
"location" : 0
|
|
},
|
|
{
|
|
"type" : "vec3",
|
|
"name" : "vTex3",
|
|
"location" : 1
|
|
}
|
|
],
|
|
"outputs" : [
|
|
{
|
|
"type" : "vec4",
|
|
"name" : "FragColor",
|
|
"location" : 0
|
|
}
|
|
],
|
|
"separate_images" : [
|
|
{
|
|
"type" : "texture2D",
|
|
"name" : "uTexture",
|
|
"array" : [
|
|
4
|
|
],
|
|
"array_size_is_literal" : [
|
|
true
|
|
],
|
|
"set" : 0,
|
|
"binding" : 1
|
|
},
|
|
{
|
|
"type" : "texture2DArray",
|
|
"name" : "uTextureArray",
|
|
"array" : [
|
|
4
|
|
],
|
|
"array_size_is_literal" : [
|
|
true
|
|
],
|
|
"set" : 0,
|
|
"binding" : 4
|
|
},
|
|
{
|
|
"type" : "textureCube",
|
|
"name" : "uTextureCube",
|
|
"array" : [
|
|
4
|
|
],
|
|
"array_size_is_literal" : [
|
|
true
|
|
],
|
|
"set" : 0,
|
|
"binding" : 3
|
|
},
|
|
{
|
|
"type" : "texture3D",
|
|
"name" : "uTexture3D",
|
|
"array" : [
|
|
4
|
|
],
|
|
"array_size_is_literal" : [
|
|
true
|
|
],
|
|
"set" : 0,
|
|
"binding" : 2
|
|
}
|
|
],
|
|
"separate_samplers" : [
|
|
{
|
|
"type" : "sampler",
|
|
"name" : "uSampler",
|
|
"set" : 0,
|
|
"binding" : 0
|
|
}
|
|
]
|
|
} |