MCPcopy Create free account
hub / github.com/Ipotrick/Daxa / check_ids

Function check_ids

src/impl_command_recorder.cpp:183–212  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

181
182template <typename... Args>
183auto check_ids(daxa_CommandRecorder self, Args... args) -> daxa_Result
184{
185#if DAXA_VALIDATION
186 if (!(only_check_buffer(self, args) && ...))
187 {
188 return DAXA_RESULT_INVALID_BUFFER_ID;
189 }
190 if (!(only_check_image(self, args) && ...))
191 {
192 return DAXA_RESULT_INVALID_IMAGE_ID;
193 }
194 if (!(only_check_image_view(self, args) && ...))
195 {
196 return DAXA_RESULT_INVALID_IMAGE_VIEW_ID;
197 }
198 if (!(only_check_sampler(self, args) && ...))
199 {
200 return DAXA_RESULT_INVALID_SAMPLER_ID;
201 }
202 if (!(only_check_tlas(self, args) && ...))
203 {
204 return DAXA_RESULT_INVALID_TLAS_ID;
205 }
206 if (!(only_check_blas(self, args) && ...))
207 {
208 return DAXA_RESULT_INVALID_BLAS_ID;
209 }
210#endif
211 return DAXA_RESULT_SUCCESS;
212}
213
214template <typename... Args>
215void remember_ids(daxa_CommandRecorder self, Args... args)

Callers

nothing calls this directly

Calls 6

only_check_bufferFunction · 0.85
only_check_imageFunction · 0.85
only_check_image_viewFunction · 0.85
only_check_samplerFunction · 0.85
only_check_tlasFunction · 0.85
only_check_blasFunction · 0.85

Tested by

no test coverage detected