Skip to content

Commit

Permalink
Can allocate a buffer with flags Uniform Buffer and ReadWriteBuffer u…
Browse files Browse the repository at this point in the history
…sing hxd/impl/Allocator
  • Loading branch information
clementlandrin authored and clementlandrin committed Jan 22, 2024
1 parent 67c9ec8 commit 4a2f9a8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions hxd/impl/Allocator.hx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ enum abstract BufferFlags(Int) {
public var Dynamic = 0;
public var Static = 1;
public var UniformDynamic = 2;
public var UniformReadWrite = 3;
public inline function toInt() : Int {
return this;
}
Expand All @@ -22,6 +23,7 @@ class Allocator {
case Static: null;
case Dynamic: [Dynamic];
case UniformDynamic: [UniformBuffer,Dynamic];
case UniformReadWrite: [UniformBuffer, ReadWriteBuffer];
});
}

Expand Down

0 comments on commit 4a2f9a8

Please sign in to comment.