Module draw

Module draw 

Source

StructsΒ§

BufferPoolEntry πŸ”’
CurrentEntry πŸ”’
Draw πŸ”’
Holds all device-level resources that are needed to validate indirect draws.
DrawBatcher πŸ”’
Accumulates all needed data needed to validate indirect draws.
DrawIndirectValidationBatch πŸ”’
DrawResources πŸ”’
Holds all command buffer-level resources that are needed to validate indirect draws.
MetadataEntry πŸ”’
This must match the MetadataEntry struct used by the shader.

ConstantsΒ§

BUFFER_SIZE πŸ”’
Note: This needs to be under:

FunctionsΒ§

calculate_src_buffer_binding_size πŸ”’
Returns the largest binding size that when combined with dynamic offsets can address the whole buffer.
calculate_src_offsets πŸ”’
Splits the given offset into a dynamic offset & offset.
create_bind_group_layout πŸ”’
create_buffer_and_bind_group πŸ”’
create_validation_module πŸ”’
create_validation_pipeline πŸ”’
u64_offset_to_u32_offset πŸ”’
Indirect draw validation doesn’t support u64 offsets.