Choose different buffer sizes

This commit is contained in:
Maximilian Ammann 2022-01-15 15:25:15 +01:00
parent ec20d9c0b6
commit 83477215b5

View File

@ -3,8 +3,10 @@ use wgpu::BufferAddress;
pub const DEBUG_WIREFRAME: bool = false;
pub const DEBUG_STENCIL_PATTERN: bool = false;
pub const INDEX_FORMAT: wgpu::IndexFormat = wgpu::IndexFormat::Uint16; // Must match IndexDataType
pub const VERTEX_BUFFER_SIZE: BufferAddress = 1024 * 1024 * 128;
pub const FEATURE_METADATA_BUFFER_SIZE: BufferAddress = 1024 * 1024 * 256;
pub const VERTEX_BUFFER_SIZE: BufferAddress = 1024 * 1024 * 32;
pub const FEATURE_METADATA_BUFFER_SIZE: BufferAddress = 1024 * 1024 * 32;
pub const INDICES_BUFFER_SIZE: BufferAddress = 1024 * 1024 * 16;
pub const TILE_META_COUNT: BufferAddress = 1024 * 24;
pub const TILE_MASK_INSTANCE_COUNT: BufferAddress = 512; // FIXME: Pick reasonable size