20using namespace blender::gpu;
21using namespace blender::gpu::shader;
91 {
"vec3_1010102_Unorm"},
92 {
"vec3_1010102_Inorm"},
96 return glsl_builtin_types.
contains(type);
103 case ImageType::Float1D:
105 case ImageType::Float2D:
107 case ImageType::Float3D:
109 case ImageType::FloatCube:
110 return "texturecube";
111 case ImageType::Float1DArray:
112 return "texture1d_array";
113 case ImageType::Float2DArray:
114 return "texture2d_array";
115 case ImageType::FloatCubeArray:
116 return "texturecube_array";
117 case ImageType::FloatBuffer:
118 return "texture_buffer";
119 case ImageType::Depth2D:
121 case ImageType::Shadow2D:
123 case ImageType::Depth2DArray:
124 return "depth2d_array";
125 case ImageType::Shadow2DArray:
126 return "depth2d_array";
127 case ImageType::DepthCube:
129 case ImageType::ShadowCube:
131 case ImageType::DepthCubeArray:
132 return "depthcube_array";
133 case ImageType::ShadowCubeArray:
134 return "depthcube_array";
135 case ImageType::Int1D:
137 case ImageType::Int2D:
139 case ImageType::Int3D:
141 case ImageType::IntCube:
142 return "texturecube";
143 case ImageType::Int1DArray:
144 return "texture1d_array";
145 case ImageType::Int2DArray:
146 return "texture2d_array";
147 case ImageType::IntCubeArray:
148 return "texturecube_array";
149 case ImageType::IntBuffer:
150 return "texture_buffer";
151 case ImageType::Uint1D:
153 case ImageType::Uint2D:
155 case ImageType::Uint3D:
157 case ImageType::UintCube:
158 return "texturecube";
159 case ImageType::Uint1DArray:
160 return "texture1d_array";
161 case ImageType::Uint2DArray:
162 return "texture2d_array";
163 case ImageType::UintCubeArray:
164 return "texturecube_array";
165 case ImageType::UintBuffer:
166 return "texture_buffer";
167 case ImageType::AtomicInt2D:
168 case ImageType::AtomicUint2D:
170 case ImageType::AtomicInt2DArray:
171 case ImageType::AtomicUint2DArray:
174 return supports_native_atomics ?
"texture2d_array" :
"texture2d";
175 case ImageType::AtomicInt3D:
176 case ImageType::AtomicUint3D:
179 return supports_native_atomics ?
"texture3d" :
"texture2d";
193 case ImageType::Float1D:
194 case ImageType::Int1D:
195 case ImageType::Uint1D:
197 case ImageType::Float1DArray:
198 case ImageType::Int1DArray:
199 case ImageType::Uint1DArray:
200 return "sampler1DArray";
201 case ImageType::Float2D:
202 case ImageType::Int2D:
203 case ImageType::Uint2D:
205 case ImageType::Float2DArray:
206 case ImageType::Int2DArray:
207 case ImageType::Uint2DArray:
208 return "sampler2DArray";
209 case ImageType::Float3D:
210 case ImageType::Int3D:
211 case ImageType::Uint3D:
213 case ImageType::FloatBuffer:
214 case ImageType::IntBuffer:
215 case ImageType::UintBuffer:
216 return "samplerBuffer";
217 case ImageType::FloatCube:
218 case ImageType::IntCube:
219 case ImageType::UintCube:
220 return "samplerCube";
221 case ImageType::FloatCubeArray:
222 case ImageType::IntCubeArray:
223 case ImageType::UintCubeArray:
224 return "samplerCubeArray";
225 case ImageType::Depth2D:
226 case ImageType::Shadow2D:
227 return "sampler2DDepth";
228 case ImageType::Depth2DArray:
229 case ImageType::Shadow2DArray:
230 return "sampler2DArrayDepth";
231 case ImageType::DepthCube:
232 case ImageType::ShadowCube:
234 case ImageType::DepthCubeArray:
235 case ImageType::ShadowCubeArray:
236 return "depthCubeArray";
239 case ImageType::AtomicInt2D:
240 case ImageType::AtomicUint2D:
241 return supports_native_atomics ?
"sampler2D" :
"sampler2DAtomic";
242 case ImageType::AtomicInt3D:
243 case ImageType::AtomicUint3D:
244 return supports_native_atomics ?
"sampler3D" :
"sampler3DAtomic";
245 case ImageType::AtomicInt2DArray:
246 case ImageType::AtomicUint2DArray:
247 return supports_native_atomics ?
"sampler2DArray" :
"sampler2DArrayAtomic";
261 case ImageType::Float1D:
262 case ImageType::Float2D:
263 case ImageType::Float3D:
264 case ImageType::FloatCube:
265 case ImageType::Float1DArray:
266 case ImageType::Float2DArray:
267 case ImageType::FloatCubeArray:
268 case ImageType::FloatBuffer:
269 case ImageType::Depth2D:
270 case ImageType::Shadow2D:
271 case ImageType::Depth2DArray:
272 case ImageType::Shadow2DArray:
273 case ImageType::DepthCube:
274 case ImageType::ShadowCube:
275 case ImageType::DepthCubeArray:
276 case ImageType::ShadowCubeArray: {
280 case ImageType::Int1D:
281 case ImageType::Int2D:
282 case ImageType::Int3D:
283 case ImageType::IntCube:
284 case ImageType::Int1DArray:
285 case ImageType::Int2DArray:
286 case ImageType::IntCubeArray:
287 case ImageType::IntBuffer:
288 case ImageType::AtomicInt2D:
289 case ImageType::AtomicInt2DArray:
290 case ImageType::AtomicInt3D: {
295 case ImageType::Uint1D:
296 case ImageType::Uint2D:
297 case ImageType::Uint3D:
298 case ImageType::UintCube:
299 case ImageType::Uint1DArray:
300 case ImageType::Uint2DArray:
301 case ImageType::UintCubeArray:
302 case ImageType::UintBuffer:
303 case ImageType::AtomicUint2D:
304 case ImageType::AtomicUint2DArray:
305 case ImageType::AtomicUint3D: {
337 return "mtl_VertOut";
357 return "mtl_VertOut";
371 return "mtl_vert_out";
373 return "mtl_frag_out";
387 return "mtl_vert_in";
389 return "mtl_frag_in";
435 return std::to_string(value.u);
437 return std::to_string(value.i);
439 return value.u ?
"true" :
"false";
450 return " [[center_perspective]]";
454 return " [[center_no_perspective]]";
464# define LINE "\n#line " STRINGIFY(__LINE__) "\n"
477 if (!
str.is_array()) {
480 return " (&" +
str.str_no_array() +
attribute +
")" +
str.str_only_array();
485 if (!
str.is_array()) {
488 return " *" +
str.str_no_array();
502 out <<
" struct PushConstantBlock {\n";
507 out <<
" " << type <<
" " << uni.name << uni.array_str() <<
";\n";
514 out <<
" const constant " << type <<
" (&" << uni.name <<
")" << uni.array_str() <<
";\n";
520 out <<
Sep() <<
"const constant PushConstantBlock &mtl_pc";
526 out <<
Sep() << uni.name <<
"(mtl_pc." << uni.name <<
")";
532 out <<
Sep() <<
"*mtl_pc";
537 out <<
Sep() <<
"constant " <<
wrap_type(
"PushConstantBlock", stage) <<
" *mtl_pc";
543 const bool writeable,
549 const char *memory_scope = (writeable) ?
"device " :
"constant ";
555 out <<
" " << memory_scope << type <<
ref_type(name) <<
";\n";
560 out <<
Sep() << const_qual << memory_scope << type <<
ref_type(name);
572 out <<
"const_cast<" << memory_scope << type <<
" (&)" << name.
str_only_array() <<
">(";
586 out <<
ref_type(name,
" [[buffer(" + std::to_string(slot) +
")]]");
593 return "access::sample";
598 return "access::read";
600 return "access::write";
602 return "access::read_write";
617 const bool use_sampler_argument_buffer =
false)
621 if (
ELEM(type, ImageType::FloatBuffer, ImageType::IntBuffer, ImageType::UintBuffer)) {
632 const std::string sampler_name = use_sampler_argument_buffer ?
633 (
"mtl_samplers.samplers[" + sampler_slot +
"]") :
636 const std::string type_str =
to_raw_type(type) +
"<" + temp_args +
"> ";
637 const std::string wrapper_str =
"_" +
to_wrapper_type(type) +
"<" + temp_args +
"> ";
641 out <<
" " << wrapper_str << name <<
";\n";
646 out <<
Sep() << wrapper_str << name;
651 out <<
Sep() << name <<
"(" << name <<
")";
656 std::string atomic_args;
657 if (!supports_native_atomics) {
668 ImageType::AtomicUint2DArray,
669 ImageType::AtomicUint3D,
670 ImageType::AtomicInt2DArray,
671 ImageType::AtomicInt3D))
675 atomic_args +=
", {";
676 atomic_args += prefix + name +
"_buf_" + suffix +
", ";
677 atomic_args +=
"ushort3(mtl_pc->" + name +
"_metadata_.xyz), ";
678 atomic_args +=
"ushort(mtl_pc->" + name +
"_metadata_.w)";
681 else if (
ELEM(type, ImageType::AtomicUint2D, ImageType::AtomicInt2D)) {
683 atomic_args +=
", {";
684 atomic_args += prefix + name +
"_buf_" + suffix +
", ";
685 atomic_args +=
"ushort(mtl_pc->" + name +
"_metadata_.w)";
690 out <<
Sep() << wrapper_str <<
"{&" << name <<
", &" << sampler_name << atomic_args <<
"}";
693 out <<
Sep() << wrapper_str <<
"{&" << name <<
", nullptr " << atomic_args <<
"}";
699 out <<
Sep() << type_str << name <<
" [[texture(" << slot <<
")]]";
701 if (is_sampler && !use_sampler_argument_buffer) {
702 out <<
Sep() <<
"sampler " << sampler_name <<
" [[sampler(" << sampler_slot <<
")]]";
714 out <<
" instance_acceleration_structure " << name <<
";\n";
719 out <<
Sep() <<
"instance_acceleration_structure " << name;
724 out <<
Sep() << name <<
"(" << name <<
")";
734 out <<
Sep() <<
"instance_acceleration_structure " << name;
735 out <<
" [[buffer(" << slot <<
")]]";
743 const bool use_sampler_argument_buffer)
754 use_sampler_argument_buffer);
759 res.image.qualifiers,
768 res.uniformbuf.type_name,
776 res.storagebuf.type_name,
793 out <<
"constant " << constant.
type <<
" " << constant.
name;
803 out <<
"constant " << constant.
type <<
" " << constant.
name;
804 out <<
" [[function_constant(" <<
index <<
")]];\n";
828 out <<
" threadgroup " << sv.
type <<
" " << sv.
name <<
";\n";
842 out <<
"struct BindlessSamplers {\n";
843 out <<
" array<sampler, " << sampler_count <<
"> samplers [[id(0)]];\n";
849 out <<
Sep() <<
"constant BindlessSamplers &mtl_samplers";
884 if (use_sampler_argument_buffer) {
906 out <<
" const " << attr.
type <<
" " << attr.
name <<
";\n";
909 out <<
" struct " << in_class_local <<
" {\n";
911 out <<
" " << attr.
type <<
" " << attr.
name <<
" [[attribute(" << attr.
index <<
")]];\n";
918 out <<
Sep() <<
"const thread " << in_class_local <<
" &mtl_vert_in";
930 out <<
Sep() << in_class <<
" " << in_inst <<
" [[stage_in]]";
940 std::stringstream &declaration,
945 const bool is_const =
false)
950 declaration <<
" " << type <<
" " << var <<
" " <<
attribute <<
array <<
";\n";
962 std::stringstream
decl;
968 std::string pos_attr =
"[[position]] [[invariant]]";
980 ss,
decl,
"uint",
"gpu_Layer",
"[[render_target_array_index]]",
"", is_frag);
984 ss,
decl,
"uint",
"gpu_ViewportIndex",
"[[viewport_array_index]]",
"", is_frag);
1000 std::string start_cond =
1001 "\n#if (defined(SRT_CONSTANT_use_clipping) ? (SRT_CONSTANT_use_clipping == 1) : "
1002 "defined(USE_WORLD_CLIP_PLANES))\n";
1003 std::string end_cond =
"\n#endif\n";
1020 for ([[maybe_unused]]
const int i :
IndexRange(6)) {
1021 ss.
entry_point_start <<
" " << vert_inout_inst <<
".gl_ClipDistance[" << i <<
"] = 1.0f;\n";
1035 !
inout.name.is_array());
1036 out <<
" " <<
inout.type <<
" _" << iface_name <<
"_" <<
inout.name.str_no_array();
1058 out <<
" " << const_qual << mem_scope <<
inout.type <<
" &" <<
inout.name <<
";\n";
1062 out <<
" struct " << iface->
name <<
" {\n";
1066 out <<
" " << const_qual << mem_scope <<
inout.type <<
" &" <<
inout.name <<
";\n";
1073 out <<
" struct " << out_class_local <<
" {\n";
1074 out << builtins_decl;
1085 out <<
Sep() << const_qual << mem_scope << out_class_local <<
" &mtl_vert_out";
1113 out <<
Sep() << const_qual << in_class <<
" " << in_inst <<
" [[stage_in]]";
1129 std::stringstream &declaration,
1134 const bool is_const =
false)
1139 declaration <<
" " << native_type <<
" " << var <<
" " <<
attribute <<
";\n";
1143 std::string
cast =
"*reinterpret_cast<thread " + type +
"*>";
1149 std::stringstream
decl;
1153 switch (depth_write) {
1155 return "[[depth(any)]]";
1157 return "[[depth(greater)]]";
1159 return "[[depth(less)]]";
1178 std::string in_class =
wrap_type(in_class_local, stage);
1191 out <<
" " << mem_scope << input.
type <<
" &" << input.
name <<
";\n";
1195 out <<
" struct " << in_class_local <<
" {\n";
1198 out <<
" [[color(" << input.
index <<
")]]";
1209 out <<
Sep() << mem_scope << in_class_local <<
" &mtl_subpass_in";
1215 out <<
Sep() << input.
name <<
"(mtl_subpass_in." << input.
name <<
")";
1221 out <<
Sep() <<
"mtl_subpass_in";
1226 out <<
Sep() << in_class <<
" mtl_subpass_in";
1248 out <<
" " << mem_scope <<
output.type <<
" &" <<
output.name <<
";\n";
1252 out <<
" struct " << out_class_local <<
" {\n";
1253 if (builtins_decl.empty() ==
false) {
1254 out << builtins_decl;
1258 out <<
" [[color(" <<
output.index <<
")]]";
1262 if (
output.raster_order_group >= 0) {
1263 out <<
" [[raster_order_group(" <<
output.raster_order_group <<
")]]";
1272 out <<
Sep() << mem_scope << out_class_local <<
" &mtl_frag_out";
1332 generate_builtin(generated, wrapper_type, wrapper_var, wrapper_type, native_var);
1337 generate_builtin(ss,
"int",
"gpu_InstanceIndex",
"uint",
"[[instance_id]]");
1338 generate_builtin(ss,
"int",
"gpu_BaseInstance",
"uint",
"[[base_instance]]");
1343 out <<
" int gl_InstanceID;\n";
1347 out <<
Sep() <<
"gl_InstanceID(gpu_InstanceIndex - gpu_BaseInstance)";
1380 generate_builtin(ss,
"uint3",
"gl_GlobalInvocationID",
"[[thread_position_in_grid]]");
1383 generate_builtin(ss,
"uint3",
"gl_WorkGroupID",
"[[threadgroup_position_in_grid]]");
1386 generate_builtin(ss,
"uint3",
"gl_NumWorkGroups",
"[[threadgroups_per_grid]]");
1389 generate_builtin(ss,
"uint",
"gl_LocalInvocationIndex",
"[[thread_index_in_threadgroup]]");
1392 generate_builtin(ss,
"uint3",
"gl_LocalInvocationID",
"[[thread_position_in_threadgroup]]");
1408 std::string stage_out_class =
"void";
1409 if (stage_out_class_name !=
"void") {
1410 stage_out_class = stage_class_name +
"::" + stage_out_class_name;
1418 std::stringstream prefix;
1420 prefix <<
"#line 1 \"" __FILE__
"\"\n";
1423 prefix <<
"struct " << stage_class_name <<
" {\n";
1427 std::stringstream
out;
1431 out <<
"#undef color\n";
1432 out <<
"#undef user\n";
1433 out <<
"#pragma blender dead_code_elimination off\n";
1437 out <<
" " << stage_class_name <<
"(";
1446 out <<
LINE <<
"[[early_fragment_tests]]";
1450 out <<
LINE << stage_type_name <<
" " << stage_out_class <<
" " << entry_point_name;
1460 if (stage_out_class !=
"void") {
1462 out <<
" " << stage_out_class <<
" " << stage_out_inst_name <<
";";
1469 out <<
" " << stage_class_name <<
" " << stage_inst_name;
1475 out <<
" " << stage_inst_name <<
".main();\n";
1480 std::string pos = stage_out_inst_name +
".gl_Position";
1482 out <<
LINE <<
" " << pos <<
".y = -" << pos <<
".y;\n";
1484 out <<
LINE <<
" " << pos <<
".z = (" << pos <<
".z + " << pos <<
".w) / 2.0;\n";
1487 if (stage_out_class !=
"void") {
1488 out <<
LINE <<
" return " << stage_out_inst_name <<
";\n";
1493 return {prefix.str(),
out.str()};
1499 uint32_t free_slots = ~((~0u) << 31u);
1502 switch (res.bind_type) {
1545 ImageType::AtomicUint2D,
1546 ImageType::AtomicUint2DArray,
1547 ImageType::AtomicUint3D,
1548 ImageType::AtomicInt2D,
1549 ImageType::AtomicInt2DArray,
1550 ImageType::AtomicInt3D))
1555 if (patched_info ==
nullptr) {
1556 patched_info = std::make_unique<PatchedShaderCreateInfo>(original_info);
1560 patched_info->names.append(std::make_unique<std::string>(name +
"_buf_[]"));
1561 patched_info->info.storage_buf(
1563 patched_info->names.append(std::make_unique<std::string>(name +
"_metadata_"));
1564 patched_info->info.push_constant(
Type::uint4_t, *patched_info->names.last());
1568 switch (res.bind_type) {
1570 ensure_atomic_workaround(res.sampler.type, res.sampler.name);
1573 ensure_atomic_workaround(res.image.type, res.image.name);
1583 ensure_atomic_workaround_resource(res);
1586 ensure_atomic_workaround_resource(res);
1589 ensure_atomic_workaround_resource(res);
#define BLI_assert_unreachable()
constexpr IndexRange()=default
bool contains(const Key &key) const
constexpr bool is_empty() const
constexpr bool is_empty() const
static MTLCapabilities & get_capabilities()
ccl_device_inline float interp(const float a, const float b, const float t)
ccl_device_inline int4 cast(const float4 a)
#define MTL_SAMPLER_ARGUMENT_BUFFER_SLOT
#define MTL_ACCELERATION_STRUCTURE_SLOT
#define MTL_PUSH_CONSTANT_BUFFER_SLOT
#define MTL_UBO_SLOT_OFFSET
#define MTL_IMAGE_SLOT_OFFSET
#define MTL_SAMPLER_SLOT_OFFSET
#define MTL_SSBO_SLOT_OFFSET
#define MTL_SPECIALIZATION_CONSTANT_OFFSET
static void generate_vertex_out(GeneratedStreams &generated, const ShaderCreateInfo &info, const ShaderStage stage)
std::string ptr_type(const ResourceString &str)
static const char * get_stage_class_name(ShaderStage stage)
static void generate_acceleration_structure(GeneratedStreams &generated, StringRefNull name, int slot)
const char * to_string(ShaderStage stage)
static void generate_fragment_interface(GeneratedStreams &generated, const ShaderCreateInfo &info)
std::pair< std::string, std::string > generate_entry_point(const ShaderCreateInfo &info, const ShaderStage stage, const StringRefNull entry_point_name)
static StringRefNull to_raw_type(ImageType type)
static void generate_resource(GeneratedStreams &generated, const ShaderCreateInfo::Resource &res, const ShaderStage stage, const ShaderCreateInfo &, const bool use_sampler_argument_buffer)
static void generate_buffer(GeneratedStreams &generated, const bool writeable, std::string type, ResourceString name, int slot, const ShaderStage stage)
static void generate_texture(GeneratedStreams &generated, bool is_sampler, shader::Qualifier qualifier, const shader::ImageType type, ResourceString name, int slot, const ShaderStage stage, const bool use_sampler_argument_buffer=false)
static void generate_builtins(GeneratedStreams &ss, const ShaderStage stage, const ShaderCreateInfo &info)
static const char * get_stage_instance_name(ShaderStage stage)
static bool is_builtin_type(StringRefNull type)
static void generate_instance_id(GeneratedStreams &ss)
static void generate_vertex_interface(GeneratedStreams &generated, const ShaderCreateInfo &info)
static void generate_raster_builtin(GeneratedStreams &ss, std::stringstream &declaration, const StringRefNull type, const StringRefNull var, const StringRefNull attribute, const StringRefNull array="", const bool is_const=false)
static std::string generate_raster_builtins(GeneratedStreams &ss, const ShaderCreateInfo &info, const ShaderStage stage)
StringRefNull to_access(const bool is_sampler, const shader::Qualifier qualifier)
static void generate_specialization_constant(GeneratedStreams &generated, const SpecializationConstant &constant, int index)
static const char * get_stage_out_instance_name(ShaderStage stage)
static void generate_stage_interfaces(GeneratedStreams &generated, const ShaderStage stage, const ShaderCreateInfo &info)
StringRefNull to_wrapper_type(ImageType type)
static void generate_sampler_argument_buffer(GeneratedStreams &generated, int sampler_count)
static std::string generate_fragment_builtins(GeneratedStreams &ss, const ShaderCreateInfo &info)
static void generate_builtin(GeneratedStreams &ss, const StringRefNull wrapper_type, const StringRefNull wrapper_var, const StringRefNull native_type, const StringRefNull native_var)
static StringRefNull to_component_type(ImageType type)
static void generate_fragment_out(GeneratedStreams &generated, const ShaderCreateInfo &info)
std::string ref_type(const ResourceString &str, const std::string &attribute="")
static void generate_inout(std::stringstream &out, StringRefNull iface_name, const StageInterfaceInfo::InOut &inout)
static void generate_compilation_constant(GeneratedStreams &generated, const CompilationConstant &constant)
static void generate_vertex_attributes(GeneratedStreams &generated, const ShaderCreateInfo &info)
static void generate_fragment_builtin(GeneratedStreams &ss, std::stringstream &declaration, const StringRefNull type, const StringRefNull var, const StringRefNull native_type, const StringRefNull attribute, const bool is_const=false)
static const char * get_stage_in_instance_name(ShaderStage stage)
static void generate_uniforms(GeneratedStreams &generated, Span< ShaderCreateInfo::PushConst > uniforms, const ShaderStage stage)
static const char * get_stage_in_class_name(ShaderStage stage)
static const char * get_stage_type(ShaderStage stage)
static const char * get_stage_out_class_name(ShaderStage stage, const ShaderCreateInfo &info)
static void generate_subpass_inputs(GeneratedStreams &generated, const ShaderCreateInfo &info)
void patch_create_info_atomic_workaround(std::unique_ptr< PatchedShaderCreateInfo > &patched_info, const shader::ShaderCreateInfo &original_info)
uint32_t available_buffer_slots(const ShaderCreateInfo &info)
void generate_resources(GeneratedStreams &generated, const ShaderStage stage, const ShaderCreateInfo &info)
std::string wrap_type(StringRefNull type_name, const ShaderStage stage)
static void generate_shared_variable(GeneratedStreams &generated, const ShaderCreateInfo::SharedVariable &sv)
BLI_assert(slot->slot_subtype.map==BMO_OP_SLOT_SUBTYPE_MAP_FLT)
MINLINE unsigned int bitscan_forward_clear_uint(unsigned int *a)
std::stringstream & operator<<(Separator)
std::stringstream entry_point_start
ArgumentStream wrapper_constructor_parameters
std::stringstream wrapper_class_members
std::stringstream wrapper_class_prefix
ArgumentStream wrapper_constructor_assign
ArgumentStream entry_point_parameters
ArgumentStream wrapper_instance_init
bool supports_texture_atomics
SpecializationConstant::Value value
StringRef str_no_array() const
StringRef str_only_array() const
Describe inputs & outputs, stage interfaces, resources and sources of a shader. If all data is correc...
Vector< Resource, 0 > geometry_resources_
Vector< SpecializationConstant, 0 > specialization_constants_
int max_sampler_slot() const
Vector< CompilationConstant, 0 > compilation_constants_
bool early_fragment_test_
Vector< VertIn, 0 > vertex_inputs_
Vector< StageInterfaceInfoHandle, 0 > vertex_out_interfaces_
Vector< Resource, 0 > pass_resources_
Vector< PushConst, 0 > push_constants_
Vector< SubpassIn, 0 > subpass_inputs_
Vector< Resource, 0 > batch_resources_
Vector< SharedVariable, 0 > shared_variables_
Vector< FragOut, 0 > fragment_outputs_
BuiltinBits builtins_combined() const
StringRefNull instance_name