44 VKDrawIndirectCreateInfo,
46 VK_PIPELINE_STAGE_ALL_GRAPHICS_BIT,
47 VKResourceType::IMAGE | VKResourceType::BUFFER> {
54 template<
typename Storage>
64 return storage.draw_indirect[storage_index];
78 links.
buffers.append({buffer_resource, VK_ACCESS_INDIRECT_COMMAND_READ_BIT});
91 data.graphics.pipeline_data,
92 storage_push_constants,
94 VK_PIPELINE_BIND_POINT_GRAPHICS,
95 VK_SHADER_STAGE_ALL_GRAPHICS);
97 command_buffer,
data.vertex_buffers, r_bound_pipelines.
graphics.vertex_buffers);
constexpr IndexRange()=default
bool use_multi_draw_indirect
virtual void draw_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
static Data & alloc_node_data(Storage &storage, int64_t &r_storage_index)
static Data & storage_data(Storage &storage, int64_t storage_index)
void build_links(VKResourceStateTracker &resources, VKRenderGraphLinks &links, const CreateInfo &create_info, Data &data) override
VKDrawIndirectCreateInfo CreateInfo
ResourceWithStamp get_buffer(ResourceHandle buffer_handle) const
#define storage(slot, qualifiers)
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)
BMesh const char void * data
struct blender::gpu::render_graph::VKBoundPipelines::@354275304307172366215375121273352137136061330352 graphics
const VKResourceAccessInfo & resources
VKDrawIndirectCreateInfo(const VKResourceAccessInfo &resources)
VKResourceWithHandle< VkBuffer > indirect_buffer
VKVertexBufferBindings vertex_buffers
VKPipelineDataGraphics graphics
Vector< VKRenderGraphBuffer > buffers
void build_links(VKResourceStateTracker &resources, VKRenderGraphLinks &links) const