Skip to content

Commit

Permalink
More alpenglow prototype work
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanolson committed Dec 25, 2023
1 parent 8475c04 commit e4af56c
Show file tree
Hide file tree
Showing 2 changed files with 446 additions and 145 deletions.
1 change: 1 addition & 0 deletions js/webgpu/DeviceContext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ export default class DeviceContext {

// in bytes
public createBuffer( size: number ): GPUBuffer {
// TODO: label!!!
return this.device.createBuffer( {
size: Math.max( size, 16 ), // Min of 16 bytes used
usage: GPUBufferUsage.COPY_SRC | GPUBufferUsage.COPY_DST | GPUBufferUsage.STORAGE
Expand Down
Loading

0 comments on commit e4af56c

Please sign in to comment.