| 155 | } |
| 156 | |
| 157 | indirect_render_command_encoder::indirect_render_command_encoder(const device& dev_, |
| 158 | const graphics_pipeline& pipeline_, |
| 159 | const bool is_multi_view_) : |
| 160 | indirect_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 | |
| 171 | indirect_compute_command_encoder::indirect_compute_command_encoder(const device& dev_, |
| 172 | const device_function& kernel_obj_) : |
nothing calls this directly
no test coverage detected