mirror of
https://github.com/maplibre/maplibre-rs.git
synced 2025-12-08 19:05:57 +00:00
Choose different buffer sizes
This commit is contained in:
parent
ec20d9c0b6
commit
83477215b5
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user