47 VKDrawIndexedIndirectCreateInfo,
48 VKDrawIndexedIndirectData,
49 VK_PIPELINE_STAGE_ALL_GRAPHICS_BIT,
50 VKResourceType::IMAGE | VKResourceType::BUFFER> {
57 template<
typename Storage>
67 return storage.draw_indexed_indirect[storage_index];
79 if (
data.index_buffer.buffer != VK_NULL_HANDLE) {
85 links.
buffers.append({buffer_resource, VK_ACCESS_INDIRECT_COMMAND_READ_BIT});
98 data.graphics.pipeline_data,
99 storage_push_constants,
100 r_bound_pipelines.
graphics.pipeline,
101 VK_PIPELINE_BIND_POINT_GRAPHICS,
102 VK_SHADER_STAGE_ALL_GRAPHICS);
104 command_buffer,
data.index_buffer, r_bound_pipelines.
graphics.index_buffer);
106 command_buffer,
data.vertex_buffers, r_bound_pipelines.
graphics.vertex_buffers);
constexpr IndexRange()=default
bool use_multi_draw_indirect
virtual void draw_indexed_indirect(VkBuffer buffer, VkDeviceSize offset, uint32_t draw_count, uint32_t stride)=0
static void reset_data(Data &data)
void build_commands(VKCommandBufferInterface &command_buffer, Data &data, Span< uint8_t > storage_push_constants, VKBoundPipelines &r_bound_pipelines) override
void build_links(VKResourceStateTracker &resources, VKRenderGraphLinks &links, const CreateInfo &create_info, Data &data) override
static Data & alloc_node_data(Storage &storage, int64_t &r_storage_index)
static Data & storage_data(Storage &storage, int64_t storage_index)
VKDrawIndexedIndirectCreateInfo CreateInfo
VKDrawIndexedIndirectData Data
ResourceWithStamp get_buffer(ResourceHandle buffer_handle) const
#define storage(slot, qualifiers)
void vk_index_buffer_binding_build_commands(VKCommandBufferInterface &command_buffer, const VKIndexBufferBinding &index_buffer_binding, VKIndexBufferBinding &r_bound_index_buffer)
void vk_pipeline_dynamic_graphics_build_commands(VKCommandBufferInterface &command_buffer, const VKPipelineDataGraphics &graphics, VKBoundPipelines &r_bound_pipelines)
void vk_vertex_buffer_bindings_build_commands(VKCommandBufferInterface &command_buffer, const VKVertexBufferBindings &vertex_buffer_bindings, VKVertexBufferBindings &r_bound_vertex_buffers)
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_vertex_buffer_bindings_build_links(VKResourceStateTracker &resources, VKRenderGraphLinks &links, const VKVertexBufferBindings &vertex_buffers)
void vk_index_buffer_binding_build_links(VKResourceStateTracker &resources, VKRenderGraphLinks &links, const VKIndexBufferBinding &index_buffer_binding)
BMesh const char void * data
struct blender::gpu::render_graph::VKBoundPipelines::@354275304307172366215375121273352137136061330352 graphics
const VKResourceAccessInfo & resources
VKDrawIndexedIndirectCreateInfo(const VKResourceAccessInfo &resources)
VKIndexBufferBinding index_buffer
VKPipelineDataGraphics graphics
VKResourceWithHandle< VkBuffer > indirect_buffer
VKVertexBufferBindings vertex_buffers
Vector< VKRenderGraphBuffer > buffers
void build_links(VKResourceStateTracker &resources, VKRenderGraphLinks &links) const