| 181 | |
| 182 | template <typename... Args> |
| 183 | auto 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 | |
| 214 | template <typename... Args> |
| 215 | void remember_ids(daxa_CommandRecorder self, Args... args) |
nothing calls this directly
no test coverage detected