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

Function validate_image_task_view

src/utils/impl_task_graph_debug.hpp:77–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75 }
76
77 void validate_image_task_view(ImplTask const & task, u32 attach_index, TaskImageAttachmentInfo const & attach)
78 {
79 bool const type_restriction_upheld = attach.task_access.restriction == TaskImageAttachmentInfo::ATTACHMENT_TYPE || attach.task_access.restriction == TaskAttachmentType::UNDEFINED;
80 bool const view_filled_or_null = !attach.view.is_empty();
81 DAXA_DBG_ASSERT_TRUE_M(
82 type_restriction_upheld,
83 std::format("Detected TaskAccess that is not compatible with Resource type \"{}\" (index: {}, access: {}) in task \"{}\"\n",
84 attach.name, attach_index, to_string(attach.task_access), task.name));
85 DAXA_DBG_ASSERT_TRUE_M(
86 view_filled_or_null,
87 std::format("Detected unassigned task image view for attachment \"{}\" (index: {}, access: {}) in task \"{}\"\n",
88 attach.name, attach_index, to_string(attach.task_access), task.name));
89 }
90
91 template <typename BufferBlasTlasT>
92 void validate_task_buffer_blas_tlas_runtime_data(ImplTask & task, BufferBlasTlasT const & attach)

Callers

nothing calls this directly

Calls 2

is_emptyMethod · 0.80
to_stringFunction · 0.70

Tested by

no test coverage detected