MCPcopy Create free account
hub / github.com/a2flo/floor / indirect_render_command_encoder

Method indirect_render_command_encoder

src/device/indirect_command.cpp:157–169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

155}
156
157indirect_render_command_encoder::indirect_render_command_encoder(const device& dev_,
158 const graphics_pipeline& pipeline_,
159 const bool is_multi_view_) :
160indirect_command_encoder(dev_), pipeline(pipeline_), is_multi_view(is_multi_view_) {
161 if (!pipeline.is_valid()) {
162 throw std::runtime_error("invalid graphics_pipeline ('" + pipeline.get_description(false).debug_label +
163 "') specified in indirect render command encoder");
164 }
165 if (is_multi_view && !pipeline.is_multi_view_capable()) {
166 throw std::runtime_error("invalid graphics_pipeline ('" + pipeline.get_description(false).debug_label +
167 "') configuration: multi-view was requested, but is not supported by the pipeline");
168 }
169}
170
171indirect_compute_command_encoder::indirect_compute_command_encoder(const device& dev_,
172 const device_function& kernel_obj_) :

Callers

nothing calls this directly

Calls 2

is_validMethod · 0.45
is_multi_view_capableMethod · 0.45

Tested by

no test coverage detected