Interface GPUBufferDescriptor
interface GPUBufferDescriptor {
label?: string;
mappedAtCreation?: boolean;
size: number;
usage: number;
}
label?: string;
mappedAtCreation?: boolean;
size: number;
usage: number;
}
                 
                    
                  Hierarchy
              
              - GPUObjectDescriptorBase- GPUBufferDescriptor (View Summary)
 
 Index
Properties
 Properties
Optionallabel
label?: string
OptionalmappedAtCreation  
mappedAtCreation?: boolean
If true creates the buffer in an already mapped state, allowing
GPUBuffer#getMappedRange to be called immediately. It is valid to set
GPUBufferDescriptor#mappedAtCreation to true even if GPUBufferDescriptor#usage
does not contain GPUBufferUsage#MAP_READ or GPUBufferUsage#MAP_WRITE. This can be
used to set the buffer's initial data.
Guarantees that even if the buffer creation eventually fails, it will still appear as if the
mapped range can be written/read to until it is unmapped.
size
size: number
The size of the buffer in bytes.
usage
usage: number
The allowed usages for the buffer.
The initial value of GPUObjectBase.label.