|
Blender V5.3
|
Typedefs | |
| using | NodeHandle = uint64_t |
| using | ModificationStamp = uint64_t |
Enumerations | |
| enum class | VKNodeType { UNUSED , BEGIN_QUERY , BEGIN_RENDERING , BLIT_IMAGE , BUILD_ACCELERATION_STRUCTURE , CLEAR_ATTACHMENTS , CLEAR_COLOR_IMAGE , CLEAR_DEPTH_STENCIL_IMAGE , COPY_BUFFER , COPY_IMAGE , COPY_IMAGE_TO_BUFFER , COPY_BUFFER_TO_IMAGE , DISPATCH , DISPATCH_INDIRECT , DRAW , DRAW_INDEXED , DRAW_INDEXED_INDIRECT , DRAW_INDIRECT , END_QUERY , END_RENDERING , FILL_BUFFER , RESET_QUERY_POOL , SYNCHRONIZATION , UPDATE_BUFFER , UPDATE_MIPMAPS } |
| enum class | VKResourceType { NONE = (0 << 0) , IMAGE = (1 << 0) , BUFFER = (1 << 1) } |
Functions | |
| BLI_INLINE std::ostream & | operator<< (std::ostream &os, const VKNodeType node_type) |
| BLI_INLINE bool | node_type_is_within_rendering (VKNodeType node_type) |
| BLI_INLINE bool | node_type_is_rendering (VKNodeType node_type) |
| void | vk_pipeline_dynamic_graphics_build_commands (VKCommandBufferInterface &command_buffer, const VKPipelineDataGraphics &graphics, VKBoundPipelines &r_bound_pipelines) |
| void | vk_pipeline_data_build_commands (VKCommandBufferInterface &command_buffer, const VKPipelineData &pipeline_data, Span< uint8_t > storage_push_constants, VKBoundPipeline &r_bound_pipeline, VkPipelineBindPoint vk_pipeline_bind_point, VkShaderStageFlags vk_shader_stage_flags) |
| void | vk_index_buffer_binding_build_links (VKResourceStateTracker &resources, VKRenderGraphLinks &links, const VKIndexBufferBinding &index_buffer_binding) |
| void | vk_index_buffer_binding_build_commands (VKCommandBufferInterface &command_buffer, const VKIndexBufferBinding &index_buffer_binding, VKIndexBufferBinding &r_bound_index_buffer) |
| void | vk_vertex_buffer_bindings_build_links (VKResourceStateTracker &resources, VKRenderGraphLinks &links, const VKVertexBufferBindings &vertex_buffers) |
| void | vk_vertex_buffer_bindings_build_commands (VKCommandBufferInterface &command_buffer, const VKVertexBufferBindings &vertex_buffer_bindings, VKVertexBufferBindings &r_bound_vertex_buffers) |
| TEST_F (VKRenderGraphTestCompute, dispatch_read_back) | |
| TEST_F (VKRenderGraphTestCompute, dispatch_dispatch_read_back) | |
| TEST_F (VKRenderGraphTestCompute, dispatch_dispatch_read_back_with_changing_descriptor_sets) | |
| TEST_F (VKRenderGraphTestCompute, dispatch_dispatch_read_back_with_changing_pipelines) | |
| TEST_F (VKRenderGraphTestCompute, dispatch_dispatch_read_back_with_changing_pipelines_descriptor_sets) | |
| TEST_F (VKRenderGraphTestCompute, dispatch_indirect_read_back) | |
| TEST_F (VKRenderGraphTestCompute, dispatch_indirect_dispatch_indirect_read_back) | |
| TEST_F (VKRenderGraphTestPresent, transfer_and_present) | |
| TEST_F (VKRenderGraphTestPresent, clear_and_present) | |
| TEST_P (VKRenderGraphTestRender, begin_clear_attachments_end_read_back) | |
| TEST_P (VKRenderGraphTestRender, begin_draw_end) | |
| TEST_P (VKRenderGraphTestRender, begin_draw_end__layered) | |
| TEST_P (VKRenderGraphTestRender, begin_draw_begin_draw_end__layered_input_attachment) | |
| TEST_P (VKRenderGraphTestRender, begin_draw_end__layered_depth) | |
| INSTANTIATE_TEST_SUITE_P (, VKRenderGraphTestRender, ::testing::Values(true, false)) | |
| TEST_P (VKRenderGraphTestScheduler, begin_rendering_copy_buffer_end_rendering) | |
| TEST_P (VKRenderGraphTestScheduler, begin_clear_attachments_copy_buffer_end) | |
| TEST_P (VKRenderGraphTestScheduler, begin_copy_buffer_clear_attachments_end) | |
| TEST_P (VKRenderGraphTestScheduler, begin_clear_attachments_copy_buffer_clear_attachments_end) | |
| TEST_P (VKRenderGraphTestScheduler, begin_draw_copy_framebuffer_draw_end) | |
| TEST_P (VKRenderGraphTestScheduler, begin_update_draw_update_draw_update_draw_end) | |
| TEST_P (VKRenderGraphTestScheduler, begin_draw_copy_to_attachment_draw_end) | |
| TEST_P (VKRenderGraphTestScheduler, begin_rendering_end_rendering_begin_rendering_draw) | |
| TEST_P (VKRenderGraphTestScheduler, begin_draw_storage_end_begin_draw_end) | |
| TEST_P (VKRenderGraphTestScheduler, begin_draw_storage_end_begin_draw_end_subresource) | |
| TEST_P (VKRenderGraphTestScheduler, begin_draw_storage_dispatch_begin_draw_end_subresource) | |
| TEST_P (VKRenderGraphTestScheduler, begin_draw_storage_end_begin_draw_restart_depth) | |
| INSTANTIATE_TEST_SUITE_P (, VKRenderGraphTestScheduler, ::testing::Values(true, false)) | |
| TEST_F (VKRenderGraphTestTransfer, fill_and_read_back) | |
| TEST_F (VKRenderGraphTestTransfer, fill_transfer_and_read_back) | |
| TEST_F (VKRenderGraphTestTransfer, fill_fill_read_back) | |
| TEST_F (VKRenderGraphTestTransfer, clear_clear_copy_and_read_back) | |
| TEST_F (VKRenderGraphTestTransfer, clear_blit_copy_and_read_back) | |
| TEST_F (VKRenderGraphTestTransfer, copy_buffer_modify_data) | |
| TEST_F (VKRenderGraphTestTransfer, copy_buffer_to_image_dispatch_read_aliased_image) | |
| TEST_F (VKRenderGraphTestTransfer, copy_buffer_to_image_synchronization_aliased_image_reuse) | |
| BLI_INLINE std::string & | endl () |
| static void | submit (std::unique_ptr< VKRenderGraph > &render_graph, std::unique_ptr< CommandBufferLog > &command_buffer) |
| static VkImageLayout | to_default_image_layout (VkImageAspectFlags aspect, bool use_local_read) |
| BLI_STATIC_ASSERT (sizeof(VKRenderGraphNode)<=104, "VKRenderGraphNode should be kept small. Consider moving data to the " "VKRenderGraphStorage class.") | |
| ENUM_OPERATORS (VKResourceType) | |
Variables | |
| static constexpr VkAccessFlags | VK_ACCESS_WRITE_MASK |
ModificationStamp is used to track resource modifications.
When a resource is modified it will generate a new stamp by incrementing the previous stamp with 1. Consecutive reads should use this new stamp. The stamp stays active until the next modification to the resources is added to any render graph.
Definition at line 47 of file vk_resource_state_tracker.hh.
Index of a node inside the render graph.
Definition at line 41 of file vk_render_graph_node.hh.
|
strong |
Type of nodes of the render graph.
Definition at line 22 of file vk_node_info.hh.
|
strong |
Enum containing the different resource types that are being tracked.
| Enumerator | |
|---|---|
| NONE | |
| IMAGE | |
| BUFFER | |
Definition at line 62 of file vk_resource_state_tracker.hh.
| blender::gpu::render_graph::BLI_STATIC_ASSERT | ( | sizeof(VKRenderGraphNode)<= | 104, |
| "VKRenderGraphNode should be kept small. Consider moving data to the " "VKRenderGraphStorage class." | ) |
References BLI_STATIC_ASSERT().
Referenced by BLI_STATIC_ASSERT().
| BLI_INLINE std::string & blender::gpu::render_graph::endl | ( | ) |
Definition at line 16 of file vk_render_graph_test_types.hh.
References BLI_INLINE, and endl().
Referenced by endl(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_P(), TEST_P(), TEST_P(), TEST_P(), TEST_P(), TEST_P(), TEST_P(), TEST_P(), TEST_P(), TEST_P(), TEST_P(), TEST_P(), TEST_P(), and TEST_P().
| blender::gpu::render_graph::ENUM_OPERATORS | ( | VKResourceType | ) |
References ENUM_OPERATORS().
Referenced by ENUM_OPERATORS().
| blender::gpu::render_graph::INSTANTIATE_TEST_SUITE_P | ( | VKRenderGraphTestRender | , |
| ::testing::Values(true, false) | ) |
References INSTANTIATE_TEST_SUITE_P().
Referenced by INSTANTIATE_TEST_SUITE_P(), and INSTANTIATE_TEST_SUITE_P().
| blender::gpu::render_graph::INSTANTIATE_TEST_SUITE_P | ( | VKRenderGraphTestScheduler | , |
| ::testing::Values(true, false) | ) |
References INSTANTIATE_TEST_SUITE_P().
| BLI_INLINE bool blender::gpu::render_graph::node_type_is_rendering | ( | VKNodeType | node_type | ) |
Definition at line 142 of file vk_node_info.hh.
References BEGIN_RENDERING, BLI_INLINE, ELEM, END_RENDERING, node_type_is_rendering(), and node_type_is_within_rendering().
Referenced by node_type_is_rendering().
| BLI_INLINE bool blender::gpu::render_graph::node_type_is_within_rendering | ( | VKNodeType | node_type | ) |
Definition at line 132 of file vk_node_info.hh.
References BLI_INLINE, CLEAR_ATTACHMENTS, DRAW, DRAW_INDEXED, DRAW_INDEXED_INDIRECT, DRAW_INDIRECT, ELEM, and node_type_is_within_rendering().
Referenced by node_type_is_rendering(), and node_type_is_within_rendering().
| BLI_INLINE std::ostream & blender::gpu::render_graph::operator<< | ( | std::ostream & | os, |
| const VKNodeType | node_type ) |
Definition at line 50 of file vk_node_info.hh.
References BEGIN_QUERY, BEGIN_RENDERING, BLI_INLINE, BLIT_IMAGE, BUILD_ACCELERATION_STRUCTURE, CLEAR_ATTACHMENTS, CLEAR_COLOR_IMAGE, CLEAR_DEPTH_STENCIL_IMAGE, COPY_BUFFER, COPY_BUFFER_TO_IMAGE, COPY_IMAGE, COPY_IMAGE_TO_BUFFER, DISPATCH, DISPATCH_INDIRECT, DRAW, DRAW_INDEXED, DRAW_INDEXED_INDIRECT, DRAW_INDIRECT, END_QUERY, END_RENDERING, FILL_BUFFER, operator<<(), RESET_QUERY_POOL, SYNCHRONIZATION, UNUSED, UPDATE_BUFFER, and UPDATE_MIPMAPS.
Referenced by operator<<().
|
inlinestatic |
Definition at line 617 of file vk_render_graph_test_types.hh.
References blender::gpu::render_graph::VKCommandBuilder::build_nodes(), blender::gpu::render_graph::VKCommandBuilder::record_commands(), blender::gpu::render_graph::VKScheduler::select_nodes(), and submit().
Referenced by submit().
| blender::gpu::render_graph::TEST_F | ( | VKRenderGraphTestCompute | , |
| dispatch_dispatch_read_back | ) |
Test that the descriptor sets are updated once when chaining dispatching.
Definition at line 45 of file vk_render_graph_test_compute.cc.
References blender::gpu::render_graph::VKResourceAccessInfo::buffers, blender::gpu::render_graph::VKDispatchCreateInfo::dispatch_node, endl(), blender::EXPECT_EQ(), blender::gpu::render_graph::VKTrackedHandle< VKObjectType >::get_resource_handle(), blender::gpu::render_graph::VKDispatchData::group_count_x, blender::gpu::render_graph::VKDispatchData::group_count_y, blender::gpu::render_graph::VKDispatchData::group_count_z, log, blender::gpu::render_graph::VKDispatchData::pipeline_data, blender::gpu::render_graph::VKTrackedHandle< VKObjectType >::set_resource_handle(), TEST_F(), blender::gpu::render_graph::VKPipelineData::vk_descriptor_set, blender::gpu::render_graph::VKPipelineData::vk_pipeline, and blender::gpu::render_graph::VKPipelineData::vk_pipeline_layout.
| blender::gpu::render_graph::TEST_F | ( | VKRenderGraphTestCompute | , |
| dispatch_dispatch_read_back_with_changing_descriptor_sets | ) |
Test that the descriptor sets are updated when chaining dispatching with different descriptor sets.
Definition at line 103 of file vk_render_graph_test_compute.cc.
References blender::gpu::render_graph::VKResourceAccessInfo::buffers, blender::gpu::render_graph::VKDispatchCreateInfo::dispatch_node, endl(), blender::EXPECT_EQ(), blender::gpu::render_graph::VKTrackedHandle< VKObjectType >::get_resource_handle(), blender::gpu::render_graph::VKDispatchData::group_count_x, blender::gpu::render_graph::VKDispatchData::group_count_y, blender::gpu::render_graph::VKDispatchData::group_count_z, log, blender::gpu::render_graph::VKDispatchData::pipeline_data, blender::gpu::render_graph::VKTrackedHandle< VKObjectType >::set_resource_handle(), TEST_F(), blender::gpu::render_graph::VKPipelineData::vk_descriptor_set, blender::gpu::render_graph::VKPipelineData::vk_pipeline, and blender::gpu::render_graph::VKPipelineData::vk_pipeline_layout.
| blender::gpu::render_graph::TEST_F | ( | VKRenderGraphTestCompute | , |
| dispatch_dispatch_read_back_with_changing_pipelines | ) |
Test that the descriptor sets are updated when chaining dispatching with different pipelines.
Definition at line 165 of file vk_render_graph_test_compute.cc.
References blender::gpu::render_graph::VKResourceAccessInfo::buffers, blender::gpu::render_graph::VKDispatchCreateInfo::dispatch_node, endl(), blender::EXPECT_EQ(), blender::gpu::render_graph::VKTrackedHandle< VKObjectType >::get_resource_handle(), blender::gpu::render_graph::VKDispatchData::group_count_x, blender::gpu::render_graph::VKDispatchData::group_count_y, blender::gpu::render_graph::VKDispatchData::group_count_z, log, blender::gpu::render_graph::VKDispatchData::pipeline_data, blender::gpu::render_graph::VKTrackedHandle< VKObjectType >::set_resource_handle(), TEST_F(), blender::gpu::render_graph::VKPipelineData::vk_descriptor_set, blender::gpu::render_graph::VKPipelineData::vk_pipeline, and blender::gpu::render_graph::VKPipelineData::vk_pipeline_layout.
| blender::gpu::render_graph::TEST_F | ( | VKRenderGraphTestCompute | , |
| dispatch_dispatch_read_back_with_changing_pipelines_descriptor_sets | ) |
Test that the descriptor sets are updated when chaining dispatching with different pipelines and descriptor sets.
Definition at line 226 of file vk_render_graph_test_compute.cc.
References blender::gpu::render_graph::VKResourceAccessInfo::buffers, blender::gpu::render_graph::VKDispatchCreateInfo::dispatch_node, endl(), blender::EXPECT_EQ(), blender::gpu::render_graph::VKTrackedHandle< VKObjectType >::get_resource_handle(), blender::gpu::render_graph::VKDispatchData::group_count_x, blender::gpu::render_graph::VKDispatchData::group_count_y, blender::gpu::render_graph::VKDispatchData::group_count_z, log, blender::gpu::render_graph::VKDispatchData::pipeline_data, blender::gpu::render_graph::VKTrackedHandle< VKObjectType >::set_resource_handle(), TEST_F(), blender::gpu::render_graph::VKPipelineData::vk_descriptor_set, blender::gpu::render_graph::VKPipelineData::vk_pipeline, and blender::gpu::render_graph::VKPipelineData::vk_pipeline_layout.
| blender::gpu::render_graph::TEST_F | ( | VKRenderGraphTestCompute | , |
| dispatch_indirect_dispatch_indirect_read_back | ) |
Definition at line 323 of file vk_render_graph_test_compute.cc.
References blender::gpu::render_graph::VKDispatchIndirectData::buffer, blender::gpu::render_graph::VKResourceAccessInfo::buffers, blender::gpu::render_graph::VKDispatchIndirectCreateInfo::dispatch_indirect_node, endl(), blender::EXPECT_EQ(), blender::gpu::render_graph::VKTrackedHandle< VKObjectType >::get_resource_handle(), log, blender::gpu::render_graph::VKDispatchIndirectData::offset, blender::gpu::render_graph::VKDispatchIndirectData::pipeline_data, blender::gpu::render_graph::VKTrackedHandle< VKObjectType >::set_resource_handle(), TEST_F(), blender::gpu::render_graph::VKPipelineData::vk_descriptor_set, blender::gpu::render_graph::VKPipelineData::vk_pipeline, and blender::gpu::render_graph::VKPipelineData::vk_pipeline_layout.
| blender::gpu::render_graph::TEST_F | ( | VKRenderGraphTestCompute | , |
| dispatch_indirect_read_back | ) |
Test dispatch indirect
Definition at line 292 of file vk_render_graph_test_compute.cc.
References blender::gpu::render_graph::VKDispatchIndirectData::buffer, blender::gpu::render_graph::VKResourceAccessInfo::buffers, blender::gpu::render_graph::VKDispatchIndirectCreateInfo::dispatch_indirect_node, blender::EXPECT_EQ(), blender::gpu::render_graph::VKTrackedHandle< VKObjectType >::get_resource_handle(), log, blender::gpu::render_graph::VKDispatchIndirectData::offset, blender::gpu::render_graph::VKDispatchIndirectData::pipeline_data, blender::gpu::render_graph::VKTrackedHandle< VKObjectType >::set_resource_handle(), TEST_F(), blender::gpu::render_graph::VKPipelineData::vk_descriptor_set, blender::gpu::render_graph::VKPipelineData::vk_pipeline, and blender::gpu::render_graph::VKPipelineData::vk_pipeline_layout.
| blender::gpu::render_graph::TEST_F | ( | VKRenderGraphTestCompute | , |
| dispatch_read_back | ) |
Definition at line 13 of file vk_render_graph_test_compute.cc.
References blender::gpu::render_graph::VKResourceAccessInfo::buffers, blender::gpu::render_graph::VKDispatchCreateInfo::dispatch_node, blender::EXPECT_EQ(), blender::gpu::render_graph::VKTrackedHandle< VKObjectType >::get_resource_handle(), blender::gpu::render_graph::VKDispatchData::group_count_x, blender::gpu::render_graph::VKDispatchData::group_count_y, blender::gpu::render_graph::VKDispatchData::group_count_z, log, blender::gpu::render_graph::VKDispatchData::pipeline_data, blender::gpu::render_graph::VKTrackedHandle< VKObjectType >::set_resource_handle(), TEST_F(), blender::gpu::render_graph::VKPipelineData::vk_descriptor_set, blender::gpu::render_graph::VKPipelineData::vk_pipeline, and blender::gpu::render_graph::VKPipelineData::vk_pipeline_layout.
Referenced by TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), and TEST_F().
| blender::gpu::render_graph::TEST_F | ( | VKRenderGraphTestPresent | , |
| clear_and_present | ) |
Definition at line 43 of file vk_render_graph_test_present.cc.
References endl(), blender::EXPECT_EQ(), log, TEST_F(), blender::gpu::render_graph::VKClearColorImageData::vk_image, blender::gpu::render_graph::VKSynchronizationCreateInfo::vk_image, blender::gpu::render_graph::VKSynchronizationCreateInfo::vk_image_aspect, and blender::gpu::render_graph::VKSynchronizationCreateInfo::vk_image_layout.
| blender::gpu::render_graph::TEST_F | ( | VKRenderGraphTestPresent | , |
| transfer_and_present | ) |
Definition at line 13 of file vk_render_graph_test_present.cc.
References endl(), blender::EXPECT_EQ(), log, TEST_F(), blender::gpu::render_graph::VKSynchronizationCreateInfo::vk_image, blender::gpu::render_graph::VKSynchronizationCreateInfo::vk_image_aspect, and blender::gpu::render_graph::VKSynchronizationCreateInfo::vk_image_layout.
| blender::gpu::render_graph::TEST_F | ( | VKRenderGraphTestTransfer | , |
| clear_blit_copy_and_read_back | ) |
Clear an image, blit it to another image, copy to a staging buffer and read back.
Definition at line 243 of file vk_render_graph_test_transfer.cc.
References blender::gpu::render_graph::VKCopyImageToBufferData::dst_buffer, endl(), blender::EXPECT_EQ(), log, blender::gpu::render_graph::VKCopyImageToBufferCreateInfo::node_data, blender::gpu::render_graph::VKCopyImageToBufferData::region, blender::gpu::render_graph::VKTrackedHandle< VKObjectType >::set_resource_handle(), blender::gpu::render_graph::VKCopyImageToBufferData::src_image, TEST_F(), blender::gpu::render_graph::VKClearColorImageData::vk_clear_color_value, blender::gpu::render_graph::VKClearColorImageData::vk_image, and blender::gpu::render_graph::VKCopyImageToBufferCreateInfo::vk_image_aspects.
| blender::gpu::render_graph::TEST_F | ( | VKRenderGraphTestTransfer | , |
| clear_clear_copy_and_read_back | ) |
Fill a single buffer, copy it to a staging buffer and read the staging buffer back.
Definition at line 101 of file vk_render_graph_test_transfer.cc.
References blender::gpu::render_graph::VKCopyImageToBufferData::dst_buffer, blender::gpu::render_graph::VKCopyImageData::dst_image, endl(), blender::EXPECT_EQ(), log, blender::gpu::render_graph::VKCopyImageData::mip_levels, blender::gpu::render_graph::VKCopyImageCreateInfo::node_data, blender::gpu::render_graph::VKCopyImageToBufferCreateInfo::node_data, blender::gpu::render_graph::VKCopyImageData::region, blender::gpu::render_graph::VKCopyImageToBufferData::region, blender::gpu::render_graph::VKTrackedHandle< VKObjectType >::set_resource_handle(), blender::gpu::render_graph::VKCopyImageData::src_image, blender::gpu::render_graph::VKCopyImageToBufferData::src_image, TEST_F(), blender::gpu::render_graph::VKClearColorImageData::vk_clear_color_value, blender::gpu::render_graph::VKClearColorImageData::vk_image, blender::gpu::render_graph::VKCopyImageCreateInfo::vk_image_aspect, and blender::gpu::render_graph::VKCopyImageToBufferCreateInfo::vk_image_aspects.
| blender::gpu::render_graph::TEST_F | ( | VKRenderGraphTestTransfer | , |
| copy_buffer_modify_data | ) |
Modify a previous added copy buffer command.
Definition at line 348 of file vk_render_graph_test_transfer.cc.
References endl(), blender::EXPECT_EQ(), log, blender::gpu::render_graph::VKCopyBufferData::region, blender::gpu::render_graph::VKTrackedHandle< VKObjectType >::set_resource_handle(), and TEST_F().
| blender::gpu::render_graph::TEST_F | ( | VKRenderGraphTestTransfer | , |
| copy_buffer_to_image_dispatch_read_aliased_image | ) |
Test that a pipeline barrier between a buffer-to-image copy and a compute dispatch has the correct srcAccessMask.
This validates that srcAccessMask is properly updated when adjusting an existing barrier in add_image_barrier(), preventing WRITE_AFTER_WRITE hazards.
Reproduces the issue seen with VKTexturePool where a pool texture written by a staging buffer upload is subsequently read by a compute shader.
Definition at line 377 of file vk_render_graph_test_transfer.cc.
References blender::gpu::render_graph::VKDispatchCreateInfo::dispatch_node, blender::gpu::render_graph::VKCopyBufferToImageData::dst_image, endl(), blender::EXPECT_EQ(), blender::gpu::render_graph::VKDispatchData::group_count_x, blender::gpu::render_graph::VKDispatchData::group_count_y, blender::gpu::render_graph::VKDispatchData::group_count_z, blender::gpu::render_graph::VKResourceAccessInfo::images, log, blender::gpu::render_graph::VKCopyBufferToImageCreateInfo::node_data, blender::gpu::render_graph::VKDispatchData::pipeline_data, blender::gpu::render_graph::VKCopyBufferToImageData::region, blender::gpu::render_graph::VKTrackedHandle< VKObjectType >::set_resource_handle(), blender::gpu::render_graph::VKCopyBufferToImageData::src_buffer, TEST_F(), blender::gpu::render_graph::VKPipelineData::vk_descriptor_set, blender::gpu::render_graph::VKCopyBufferToImageCreateInfo::vk_image_aspects, blender::gpu::render_graph::VKPipelineData::vk_pipeline, and blender::gpu::render_graph::VKPipelineData::vk_pipeline_layout.
| blender::gpu::render_graph::TEST_F | ( | VKRenderGraphTestTransfer | , |
| copy_buffer_to_image_synchronization_aliased_image_reuse | ) |
Model the VKTexturePool release/re-acquire cycle with a synchronization node.
When a pooled texture is released, VKTexturePool::release_texture() adds a synchronization node that re-arms the aliased initial state ({MEMORY_READ|MEMORY_WRITE, ALL_COMMANDS}) for its VkImage. The backing memory may be reused by another image before the texture is re-acquired. The re-armed state ensures the next write to the reused memory synchronizes against every prior access to the aliased memory, avoiding WRITE_AFTER_READ/WRITE_AFTER_WRITE hazards (#161990).
Definition at line 475 of file vk_render_graph_test_transfer.cc.
References blender::gpu::render_graph::VKCopyBufferToImageData::dst_image, endl(), blender::EXPECT_EQ(), log, blender::gpu::render_graph::VKCopyBufferToImageCreateInfo::node_data, blender::gpu::render_graph::VKCopyBufferToImageData::region, blender::gpu::render_graph::VKTrackedHandle< VKObjectType >::set_resource_handle(), blender::gpu::render_graph::VKCopyBufferToImageData::src_buffer, TEST_F(), blender::gpu::render_graph::VKSynchronizationCreateInfo::vk_access_flags, blender::gpu::render_graph::VKSynchronizationCreateInfo::vk_image, blender::gpu::render_graph::VKSynchronizationCreateInfo::vk_image_aspect, blender::gpu::render_graph::VKCopyBufferToImageCreateInfo::vk_image_aspects, and blender::gpu::render_graph::VKSynchronizationCreateInfo::vk_image_layout.
| blender::gpu::render_graph::TEST_F | ( | VKRenderGraphTestTransfer | , |
| fill_and_read_back | ) |
Fill a single buffer and read it back.
Definition at line 16 of file vk_render_graph_test_transfer.cc.
References blender::EXPECT_EQ(), log, blender::gpu::render_graph::VKTrackedHandle< VKObjectType >::set_resource_handle(), and TEST_F().
| blender::gpu::render_graph::TEST_F | ( | VKRenderGraphTestTransfer | , |
| fill_fill_read_back | ) |
Fill a buffer twice, before reading back.
Between the two fills a write->write barrier should be created.
Definition at line 73 of file vk_render_graph_test_transfer.cc.
References endl(), blender::EXPECT_EQ(), log, blender::gpu::render_graph::VKTrackedHandle< VKObjectType >::set_resource_handle(), and TEST_F().
| blender::gpu::render_graph::TEST_F | ( | VKRenderGraphTestTransfer | , |
| fill_transfer_and_read_back | ) |
Fill a single buffer, copy it to a staging buffer and read the staging buffer back.
Definition at line 32 of file vk_render_graph_test_transfer.cc.
References blender::gpu::render_graph::VKCopyBufferData::dst_buffer, endl(), blender::EXPECT_EQ(), log, blender::gpu::render_graph::VKCopyBufferData::region, blender::gpu::render_graph::VKTrackedHandle< VKObjectType >::set_resource_handle(), blender::gpu::render_graph::VKCopyBufferData::src_buffer, and TEST_F().
| blender::gpu::render_graph::TEST_P | ( | VKRenderGraphTestRender | , |
| begin_clear_attachments_end_read_back | ) |
Definition at line 13 of file vk_render_graph_test_render.cc.
References blender::gpu::render_graph::VKClearAttachmentsData::attachment_count, blender::gpu::render_graph::VKClearAttachmentsData::attachments, blender::gpu::render_graph::VKBeginRenderingData::color_attachments, blender::gpu::render_graph::VKCopyImageToBufferData::dst_buffer, endl(), blender::EXPECT_EQ(), blender::gpu::render_graph::VKResourceAccessInfo::images, log, blender::gpu::render_graph::VKBeginRenderingCreateInfo::node_data, blender::gpu::render_graph::VKCopyImageToBufferCreateInfo::node_data, blender::gpu::render_graph::VKCopyImageToBufferData::region, blender::gpu::render_graph::VKTrackedHandle< VKObjectType >::set_resource_handle(), blender::gpu::render_graph::VKCopyImageToBufferData::src_image, TEST_P(), blender::gpu::render_graph::VKClearAttachmentsData::vk_clear_rect, blender::gpu::render_graph::VKCopyImageToBufferCreateInfo::vk_image_aspects, and blender::gpu::render_graph::VKBeginRenderingData::vk_rendering_info.
Referenced by TEST_P(), TEST_P(), TEST_P(), TEST_P(), TEST_P(), TEST_P(), TEST_P(), TEST_P(), TEST_P(), TEST_P(), TEST_P(), TEST_P(), TEST_P(), TEST_P(), TEST_P(), TEST_P(), and TEST_P().
| blender::gpu::render_graph::TEST_P | ( | VKRenderGraphTestRender | , |
| begin_draw_begin_draw_end__layered_input_attachment | ) |
Tests that a synchronization barrier is generated for input attachment reads on layered images after a color attachment write. Regression test for #158501.
Definition at line 359 of file vk_render_graph_test_render.cc.
References blender::gpu::render_graph::VKBeginRenderingData::color_attachments, EXPECT_TRUE, blender::gpu::render_graph::VKResourceAccessInfo::images, blender::IndexRange::IndexRange(), log, node, blender::gpu::render_graph::VKBeginRenderingCreateInfo::node_data, TEST_P(), and blender::gpu::render_graph::VKBeginRenderingData::vk_rendering_info.
| blender::gpu::render_graph::TEST_P | ( | VKRenderGraphTestRender | , |
| begin_draw_end | ) |
Definition at line 139 of file vk_render_graph_test_render.cc.
References blender::gpu::render_graph::VKBeginRenderingData::color_attachments, endl(), blender::EXPECT_EQ(), blender::gpu::render_graph::VKResourceAccessInfo::images, blender::IndexRange::IndexRange(), log, node, blender::gpu::render_graph::VKBeginRenderingCreateInfo::node_data, TEST_P(), and blender::gpu::render_graph::VKBeginRenderingData::vk_rendering_info.
| blender::gpu::render_graph::TEST_P | ( | VKRenderGraphTestRender | , |
| begin_draw_end__layered | ) |
Definition at line 225 of file vk_render_graph_test_render.cc.
References blender::gpu::render_graph::VKBeginRenderingData::color_attachments, endl(), blender::EXPECT_EQ(), blender::gpu::render_graph::VKResourceAccessInfo::images, blender::IndexRange::IndexRange(), log, node, blender::gpu::render_graph::VKBeginRenderingCreateInfo::node_data, TEST_P(), and blender::gpu::render_graph::VKBeginRenderingData::vk_rendering_info.
| blender::gpu::render_graph::TEST_P | ( | VKRenderGraphTestRender | , |
| begin_draw_end__layered_depth | ) |
Definition at line 487 of file vk_render_graph_test_render.cc.
References blender::gpu::render_graph::VKBeginRenderingData::depth_attachment, endl(), blender::EXPECT_EQ(), blender::gpu::render_graph::VKResourceAccessInfo::images, blender::IndexRange::IndexRange(), log, node, blender::gpu::render_graph::VKBeginRenderingCreateInfo::node_data, TEST_P(), and blender::gpu::render_graph::VKBeginRenderingData::vk_rendering_info.
| blender::gpu::render_graph::TEST_P | ( | VKRenderGraphTestScheduler | , |
| begin_clear_attachments_copy_buffer_clear_attachments_end | ) |
Definition at line 355 of file vk_render_graph_test_scheduler.cc.
References blender::gpu::render_graph::VKClearAttachmentsData::attachment_count, blender::gpu::render_graph::VKClearAttachmentsData::attachments, blender::gpu::render_graph::VKBeginRenderingData::color_attachments, blender::gpu::render_graph::VKCopyBufferData::dst_buffer, endl(), blender::EXPECT_EQ(), blender::gpu::render_graph::VKResourceAccessInfo::images, log, blender::gpu::render_graph::VKBeginRenderingCreateInfo::node_data, blender::gpu::render_graph::VKTrackedHandle< VKObjectType >::set_resource_handle(), blender::gpu::render_graph::VKCopyBufferData::src_buffer, TEST_P(), blender::gpu::render_graph::VKClearAttachmentsData::vk_clear_rect, blender::gpu::render_graph::VKSynchronizationCreateInfo::vk_image, blender::gpu::render_graph::VKSynchronizationCreateInfo::vk_image_aspect, blender::gpu::render_graph::VKSynchronizationCreateInfo::vk_image_layout, and blender::gpu::render_graph::VKBeginRenderingData::vk_rendering_info.
| blender::gpu::render_graph::TEST_P | ( | VKRenderGraphTestScheduler | , |
| begin_clear_attachments_copy_buffer_end | ) |
Definition at line 113 of file vk_render_graph_test_scheduler.cc.
References blender::gpu::render_graph::VKClearAttachmentsData::attachment_count, blender::gpu::render_graph::VKClearAttachmentsData::attachments, blender::gpu::render_graph::VKBeginRenderingData::color_attachments, blender::gpu::render_graph::VKCopyBufferData::dst_buffer, endl(), blender::EXPECT_EQ(), blender::gpu::render_graph::VKResourceAccessInfo::images, log, blender::gpu::render_graph::VKBeginRenderingCreateInfo::node_data, blender::gpu::render_graph::VKTrackedHandle< VKObjectType >::set_resource_handle(), blender::gpu::render_graph::VKCopyBufferData::src_buffer, TEST_P(), blender::gpu::render_graph::VKClearAttachmentsData::vk_clear_rect, blender::gpu::render_graph::VKSynchronizationCreateInfo::vk_image, blender::gpu::render_graph::VKSynchronizationCreateInfo::vk_image_aspect, blender::gpu::render_graph::VKSynchronizationCreateInfo::vk_image_layout, and blender::gpu::render_graph::VKBeginRenderingData::vk_rendering_info.
| blender::gpu::render_graph::TEST_P | ( | VKRenderGraphTestScheduler | , |
| begin_copy_buffer_clear_attachments_end | ) |
Definition at line 234 of file vk_render_graph_test_scheduler.cc.
References blender::gpu::render_graph::VKClearAttachmentsData::attachment_count, blender::gpu::render_graph::VKClearAttachmentsData::attachments, blender::gpu::render_graph::VKBeginRenderingData::color_attachments, blender::gpu::render_graph::VKCopyBufferData::dst_buffer, endl(), blender::EXPECT_EQ(), blender::gpu::render_graph::VKResourceAccessInfo::images, log, blender::gpu::render_graph::VKBeginRenderingCreateInfo::node_data, blender::gpu::render_graph::VKTrackedHandle< VKObjectType >::set_resource_handle(), blender::gpu::render_graph::VKCopyBufferData::src_buffer, TEST_P(), blender::gpu::render_graph::VKClearAttachmentsData::vk_clear_rect, blender::gpu::render_graph::VKSynchronizationCreateInfo::vk_image, blender::gpu::render_graph::VKSynchronizationCreateInfo::vk_image_aspect, blender::gpu::render_graph::VKSynchronizationCreateInfo::vk_image_layout, and blender::gpu::render_graph::VKBeginRenderingData::vk_rendering_info.
| blender::gpu::render_graph::TEST_P | ( | VKRenderGraphTestScheduler | , |
| begin_draw_copy_framebuffer_draw_end | ) |
When copying the frame buffer content between two draw calls we should not move the command.
This happens in EEVEE where the feedback radiance is copied before the world background is added to the combined texture.
Definition at line 505 of file vk_render_graph_test_scheduler.cc.
References blender::gpu::render_graph::VKBeginRenderingData::color_attachments, blender::gpu::render_graph::VKCopyImageData::dst_image, endl(), blender::EXPECT_EQ(), blender::gpu::render_graph::VKResourceAccessInfo::images, blender::IndexRange::IndexRange(), log, blender::gpu::render_graph::VKCopyImageData::mip_levels, node, blender::gpu::render_graph::VKBeginRenderingCreateInfo::node_data, blender::gpu::render_graph::VKCopyImageCreateInfo::node_data, blender::gpu::render_graph::VKCopyImageData::region, blender::gpu::render_graph::VKCopyImageData::src_image, TEST_P(), blender::gpu::render_graph::VKCopyImageCreateInfo::vk_image_aspect, and blender::gpu::render_graph::VKBeginRenderingData::vk_rendering_info.
| blender::gpu::render_graph::TEST_P | ( | VKRenderGraphTestScheduler | , |
| begin_draw_copy_to_attachment_draw_end | ) |
When drawing, copying and continue drawing to an attachment, the attachment layout should be transitioned.
This case happens when updating the swap-chain image with the result of editors.
Definition at line 922 of file vk_render_graph_test_scheduler.cc.
References blender::gpu::render_graph::VKBeginRenderingData::color_attachments, blender::gpu::render_graph::VKCopyImageData::dst_image, endl(), blender::EXPECT_EQ(), blender::gpu::render_graph::VKResourceAccessInfo::images, blender::IndexRange::IndexRange(), log, blender::gpu::render_graph::VKCopyImageData::mip_levels, node, blender::gpu::render_graph::VKBeginRenderingCreateInfo::node_data, blender::gpu::render_graph::VKCopyImageCreateInfo::node_data, blender::gpu::render_graph::VKCopyImageData::region, blender::gpu::render_graph::VKCopyImageData::src_image, TEST_P(), blender::gpu::render_graph::VKCopyImageCreateInfo::vk_image_aspect, and blender::gpu::render_graph::VKBeginRenderingData::vk_rendering_info.
| blender::gpu::render_graph::TEST_P | ( | VKRenderGraphTestScheduler | , |
| begin_draw_storage_dispatch_begin_draw_end_subresource | ) |
Test that the after-group-loop suspend (when a rendering scope group ends without END_RENDERING) correctly syncs the resource state layout. This exercises the code path where the ImageTracker is suspended due to a non-rendering node forcing a group boundary.
Definition at line 1693 of file vk_render_graph_test_scheduler.cc.
References blender::gpu::render_graph::VKBeginRenderingData::color_attachments, blender::gpu::render_graph::VKCopyBufferData::dst_buffer, EXPECT_NE, blender::gpu::render_graph::VKResourceAccessInfo::images, blender::IndexRange::IndexRange(), log, node, blender::gpu::render_graph::VKBeginRenderingCreateInfo::node_data, blender::gpu::render_graph::VKTrackedHandle< VKObjectType >::set_resource_handle(), blender::gpu::render_graph::VKCopyBufferData::src_buffer, TEST_P(), and blender::gpu::render_graph::VKBeginRenderingData::vk_rendering_info.
| blender::gpu::render_graph::TEST_P | ( | VKRenderGraphTestScheduler | , |
| begin_draw_storage_end_begin_draw_end | ) |
Tests correct barrier synchronization when an image transitions from color attachment to shader storage access, then back to color attachment across two rendering scopes. Exercises the non-subresource ImageTracker path.
Definition at line 1278 of file vk_render_graph_test_scheduler.cc.
References blender::gpu::render_graph::VKBeginRenderingData::color_attachments, endl(), blender::EXPECT_EQ(), blender::gpu::render_graph::VKResourceAccessInfo::images, blender::IndexRange::IndexRange(), log, node, blender::gpu::render_graph::VKBeginRenderingCreateInfo::node_data, TEST_P(), and blender::gpu::render_graph::VKBeginRenderingData::vk_rendering_info.
| blender::gpu::render_graph::TEST_P | ( | VKRenderGraphTestScheduler | , |
| begin_draw_storage_end_begin_draw_end_subresource | ) |
Tests barrier synchronization for storage-to-color-attachment transition with subresource tracking enabled. Verifies the suspend barrier correctly reverts from GENERAL layout and the next scope's barrier uses the correct oldLayout from the suspended state.
Definition at line 1471 of file vk_render_graph_test_scheduler.cc.
References blender::gpu::render_graph::VKBeginRenderingData::color_attachments, endl(), blender::EXPECT_EQ(), blender::gpu::render_graph::VKResourceAccessInfo::images, blender::IndexRange::IndexRange(), log, node, blender::gpu::render_graph::VKBeginRenderingCreateInfo::node_data, TEST_P(), and blender::gpu::render_graph::VKBeginRenderingData::vk_rendering_info.
| blender::gpu::render_graph::TEST_P | ( | VKRenderGraphTestScheduler | , |
| begin_draw_storage_end_begin_draw_restart_depth | ) |
Reproduces VUID-vkCmdBeginRendering-pRenderingInfo-09588 by testing the restart path in groups_build_commands() with a depth attachment that transitions to GENERAL layout during storage access, then needs to be transitioned back before vkCmdBeginRendering.
Definition at line 1856 of file vk_render_graph_test_scheduler.cc.
References blender::gpu::render_graph::VKBeginRenderingData::depth_attachment, EXPECT_TRUE, blender::gpu::render_graph::VKResourceAccessInfo::images, blender::IndexRange::IndexRange(), log, node, blender::gpu::render_graph::VKBeginRenderingCreateInfo::node_data, TEST_P(), and blender::gpu::render_graph::VKBeginRenderingData::vk_rendering_info.
| blender::gpu::render_graph::TEST_P | ( | VKRenderGraphTestScheduler | , |
| begin_rendering_copy_buffer_end_rendering | ) |
Copy buffer should be done after the end rendering.
Definition at line 14 of file vk_render_graph_test_scheduler.cc.
References blender::gpu::render_graph::VKBeginRenderingData::color_attachments, blender::gpu::render_graph::VKCopyBufferData::dst_buffer, endl(), blender::EXPECT_EQ(), blender::gpu::render_graph::VKResourceAccessInfo::images, log, blender::gpu::render_graph::VKBeginRenderingCreateInfo::node_data, blender::gpu::render_graph::VKTrackedHandle< VKObjectType >::set_resource_handle(), blender::gpu::render_graph::VKCopyBufferData::src_buffer, TEST_P(), blender::gpu::render_graph::VKSynchronizationCreateInfo::vk_image, blender::gpu::render_graph::VKSynchronizationCreateInfo::vk_image_aspect, blender::gpu::render_graph::VKSynchronizationCreateInfo::vk_image_layout, and blender::gpu::render_graph::VKBeginRenderingData::vk_rendering_info.
| blender::gpu::render_graph::TEST_P | ( | VKRenderGraphTestScheduler | , |
| begin_rendering_end_rendering_begin_rendering_draw | ) |
When dynamic rendering local read is used, subpass transitions can leave BEGIN_RENDERING nodes without matching END_RENDERING nodes (see VKFrameBuffer::subpass_transition_impl). The scheduler should handle orphaned BEGIN_RENDERING at the end of the graph gracefully.
Definition at line 1104 of file vk_render_graph_test_scheduler.cc.
References blender::gpu::render_graph::VKBeginRenderingData::color_attachments, endl(), blender::EXPECT_EQ(), blender::gpu::render_graph::VKResourceAccessInfo::images, blender::IndexRange::IndexRange(), log, node, blender::gpu::render_graph::VKBeginRenderingCreateInfo::node_data, TEST_P(), and blender::gpu::render_graph::VKBeginRenderingData::vk_rendering_info.
| blender::gpu::render_graph::TEST_P | ( | VKRenderGraphTestScheduler | , |
| begin_update_draw_update_draw_update_draw_end | ) |
Update buffers can be moved to before the rendering scope as when the destination buffer isn't used.
Definition at line 691 of file vk_render_graph_test_scheduler.cc.
References blender::gpu::render_graph::VKResourceAccessInfo::buffers, blender::gpu::render_graph::VKBeginRenderingData::color_attachments, blender::gpu::render_graph::VKUpdateBufferData::data, blender::gpu::render_graph::VKUpdateBufferData::data_size, blender::gpu::render_graph::VKUpdateBufferData::dst_buffer, endl(), blender::EXPECT_EQ(), blender::gpu::render_graph::VKTrackedHandle< VKObjectType >::get_resource_handle(), blender::gpu::render_graph::VKResourceAccessInfo::images, blender::IndexRange::IndexRange(), log, blender::MEM_new_zeroed(), node, blender::gpu::render_graph::VKBeginRenderingCreateInfo::node_data, blender::gpu::render_graph::VKTrackedHandle< VKObjectType >::set_resource_handle(), TEST_P(), and blender::gpu::render_graph::VKBeginRenderingData::vk_rendering_info.
|
static |
Definition at line 19 of file vk_command_builder.cc.
References to_default_image_layout().
Referenced by to_default_image_layout().
| void blender::gpu::render_graph::vk_index_buffer_binding_build_commands | ( | VKCommandBufferInterface & | command_buffer, |
| const VKIndexBufferBinding & | index_buffer_binding, | ||
| VKIndexBufferBinding & | r_bound_index_buffer ) |
Definition at line 100 of file vk_pipeline_data.cc.
References blender::assign_if_different(), blender::gpu::render_graph::VKCommandBufferInterface::bind_index_buffer(), blender::gpu::render_graph::VKIndexBufferBinding::buffer, blender::gpu::render_graph::VKIndexBufferBinding::index_type, and vk_index_buffer_binding_build_commands().
Referenced by blender::gpu::render_graph::VKDrawIndexedIndirectNode::build_commands(), blender::gpu::render_graph::VKDrawIndexedNode::build_commands(), and vk_index_buffer_binding_build_commands().
| void blender::gpu::render_graph::vk_index_buffer_binding_build_links | ( | VKResourceStateTracker & | resources, |
| VKRenderGraphLinks & | links, | ||
| const VKIndexBufferBinding & | index_buffer_binding ) |
Definition at line 92 of file vk_pipeline_data.cc.
References blender::gpu::render_graph::VKIndexBufferBinding::buffer, blender::gpu::render_graph::VKRenderGraphLinks::buffers, blender::gpu::render_graph::VKResourceStateTracker::get_buffer(), and vk_index_buffer_binding_build_links().
Referenced by blender::gpu::render_graph::VKDrawIndexedIndirectNode::build_links(), blender::gpu::render_graph::VKDrawIndexedNode::build_links(), and vk_index_buffer_binding_build_links().
| void blender::gpu::render_graph::vk_pipeline_data_build_commands | ( | VKCommandBufferInterface & | command_buffer, |
| const VKPipelineData & | pipeline_data, | ||
| Span< uint8_t > | storage_push_constants, | ||
| VKBoundPipeline & | r_bound_pipeline, | ||
| VkPipelineBindPoint | vk_pipeline_bind_point, | ||
| VkShaderStageFlags | vk_shader_stage_flags ) |
Record the commands to the given command buffer to bind the descriptor set, pipeline and push constants.
Descriptor set and pipeline are only bound, when they are different than the last bound. The r_bound_pipelines are checked to identify if they are the last bound. Descriptor set and pipeline are bound at the given pipeline bind point.
storage_push_constants contains all the push constants of the render graph. The pipeline_data.push_constants_range contains the valid range that needs to be bound. Any available push constants in the pipeline data always update the shader stages provided by vk_shader_stage_flags.
Definition at line 54 of file vk_pipeline_data.cc.
References blender::assign_if_different(), blender::gpu::render_graph::VKCommandBufferInterface::bind_descriptor_sets(), blender::gpu::render_graph::VKCommandBufferInterface::bind_pipeline(), blender::Span< T >::data(), blender::IndexRange::is_empty(), blender::gpu::render_graph::VKCommandBufferInterface::push_constants(), blender::gpu::render_graph::VKPipelineData::push_constants_range, blender::Span< T >::size(), blender::Span< T >::slice(), blender::gpu::render_graph::VKBoundPipeline::vk_descriptor_set, blender::gpu::render_graph::VKPipelineData::vk_descriptor_set, blender::gpu::render_graph::VKBoundPipeline::vk_pipeline, blender::gpu::render_graph::VKPipelineData::vk_pipeline, vk_pipeline_data_build_commands(), blender::gpu::render_graph::VKBoundPipeline::vk_pipeline_layout, and blender::gpu::render_graph::VKPipelineData::vk_pipeline_layout.
Referenced by blender::gpu::render_graph::VKDispatchIndirectNode::build_commands(), blender::gpu::render_graph::VKDispatchNode::build_commands(), blender::gpu::render_graph::VKDrawIndexedIndirectNode::build_commands(), blender::gpu::render_graph::VKDrawIndexedNode::build_commands(), blender::gpu::render_graph::VKDrawIndirectNode::build_commands(), blender::gpu::render_graph::VKDrawNode::build_commands(), and vk_pipeline_data_build_commands().
| void blender::gpu::render_graph::vk_pipeline_dynamic_graphics_build_commands | ( | VKCommandBufferInterface & | command_buffer, |
| const VKPipelineDataGraphics & | graphics, | ||
| VKBoundPipelines & | r_bound_pipelines ) |
Record commands that update the dynamic state.
Definition at line 16 of file vk_pipeline_data.cc.
References blender::assign_if_different(), blender::gpu::VKVertexInputDescription::attributes, blender::gpu::VKVertexInputDescription::bindings, blender::gpu::render_graph::StencilState::compare_mask, blender::gpu::VKBackend::device, blender::gpu::render_graph::VKPipelineDataGraphics::front_face, blender::gpu::VKBackend::get(), blender::gpu::VKVertexInputDescriptionPool::get(), blender::gpu::render_graph::VKBoundPipelines::graphics, blender::gpu::render_graph::VKPipelineDataGraphics::line_width, blender::gpu::render_graph::StencilState::reference, blender::gpu::render_graph::VKViewportData::scissors, blender::gpu::render_graph::VKCommandBufferInterface::set_front_face(), blender::gpu::render_graph::VKCommandBufferInterface::set_line_width(), blender::gpu::render_graph::VKCommandBufferInterface::set_scissor(), blender::gpu::render_graph::VKCommandBufferInterface::set_stencil_compare_mask(), blender::gpu::render_graph::VKCommandBufferInterface::set_stencil_reference(), blender::gpu::render_graph::VKCommandBufferInterface::set_stencil_write_mask(), blender::gpu::render_graph::VKCommandBufferInterface::set_vertex_input(), blender::gpu::render_graph::VKCommandBufferInterface::set_viewport(), blender::gpu::render_graph::VKPipelineDataGraphics::stencil_state, blender::gpu::render_graph::VKPipelineDataGraphics::vertex_input_description, blender::gpu::VKDevice::vertex_input_descriptions, blender::gpu::render_graph::VKPipelineDataGraphics::viewport, blender::gpu::render_graph::VKViewportData::viewports, vk_pipeline_dynamic_graphics_build_commands(), and blender::gpu::render_graph::StencilState::write_mask.
Referenced by blender::gpu::render_graph::VKDrawIndexedIndirectNode::build_commands(), blender::gpu::render_graph::VKDrawIndexedNode::build_commands(), blender::gpu::render_graph::VKDrawIndirectNode::build_commands(), blender::gpu::render_graph::VKDrawNode::build_commands(), and vk_pipeline_dynamic_graphics_build_commands().
| void blender::gpu::render_graph::vk_vertex_buffer_bindings_build_commands | ( | VKCommandBufferInterface & | command_buffer, |
| const VKVertexBufferBindings & | vertex_buffer_bindings, | ||
| VKVertexBufferBindings & | r_bound_vertex_buffers ) |
Definition at line 122 of file vk_pipeline_data.cc.
References blender::assign_if_different(), blender::gpu::render_graph::VKCommandBufferInterface::bind_vertex_buffers(), blender::gpu::render_graph::VKVertexBufferBindings::buffer, blender::gpu::render_graph::VKVertexBufferBindings::buffer_count, blender::gpu::render_graph::VKVertexBufferBindings::offset, and vk_vertex_buffer_bindings_build_commands().
Referenced by blender::gpu::render_graph::VKDrawIndexedIndirectNode::build_commands(), blender::gpu::render_graph::VKDrawIndexedNode::build_commands(), blender::gpu::render_graph::VKDrawIndirectNode::build_commands(), blender::gpu::render_graph::VKDrawNode::build_commands(), and vk_vertex_buffer_bindings_build_commands().
| void blender::gpu::render_graph::vk_vertex_buffer_bindings_build_links | ( | VKResourceStateTracker & | resources, |
| VKRenderGraphLinks & | links, | ||
| const VKVertexBufferBindings & | vertex_buffers ) |
Definition at line 110 of file vk_pipeline_data.cc.
References blender::gpu::render_graph::VKVertexBufferBindings::buffer_count, blender::gpu::render_graph::VKRenderGraphLinks::buffers, blender::gpu::render_graph::VKResourceStateTracker::get_buffer(), blender::gpu::render_graph::VKVertexBufferBindings::resource_handles, and vk_vertex_buffer_bindings_build_links().
Referenced by blender::gpu::render_graph::VKDrawIndexedIndirectNode::build_links(), blender::gpu::render_graph::VKDrawIndexedNode::build_links(), blender::gpu::render_graph::VKDrawIndirectNode::build_links(), blender::gpu::render_graph::VKDrawNode::build_links(), and vk_vertex_buffer_bindings_build_links().
|
staticconstexpr |
Which access flags are considered for write access.
Definition at line 28 of file vk_render_graph_links.hh.
Referenced by blender::gpu::render_graph::VKRenderGraphResource::has_write_access().