48 VKDrawIndexedCreateInfo,
50 VK_PIPELINE_STAGE_ALL_GRAPHICS_BIT,
51 VKResourceType::IMAGE | VKResourceType::BUFFER> {
58 template<
typename Storage>
68 return storage.draw_indexed[storage_index];
80 if (
data.index_buffer.buffer != VK_NULL_HANDLE) {
96 data.graphics.pipeline_data,
97 storage_push_constants,
99 VK_PIPELINE_BIND_POINT_GRAPHICS,
100 VK_SHADER_STAGE_ALL_GRAPHICS);
102 command_buffer,
data.index_buffer, r_bound_pipelines.
graphics.index_buffer);
104 command_buffer,
data.vertex_buffers, r_bound_pipelines.
graphics.vertex_buffers);
109 data.first_instance);
virtual void draw_indexed(uint32_t index_count, uint32_t instance_count, uint32_t first_index, int32_t vertex_offset, uint32_t first_instance)=0
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 void reset_data(Data &data)
static Data & alloc_node_data(Storage &storage, int64_t &r_storage_index)
static Data & storage_data(Storage &storage, int64_t storage_index)
VKDrawIndexedCreateInfo CreateInfo
#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
VKDrawIndexedCreateInfo(const VKResourceAccessInfo &resources)
VKIndexBufferBinding index_buffer
VKPipelineDataGraphics graphics
VKVertexBufferBindings vertex_buffers
void build_links(VKResourceStateTracker &resources, VKRenderGraphLinks &links) const