mirror of
https://github.com/Rezmason/matrix.git
synced 2026-04-14 12:29:30 -07:00
Renamed gpu-uniforms to gpu-buffer, and messed around with its API.
I believe all the align, size, stride and byteOffset values are now in the proper units, ie. bytes.
This commit is contained in:
@@ -50,7 +50,7 @@ const makeUniformBuffer = (device, uniforms, data = null) => {
|
||||
mappedAtCreation: data != null,
|
||||
});
|
||||
if (data != null) {
|
||||
uniforms.write(data, buffer.getMappedRange());
|
||||
uniforms.toBuffer(data, buffer.getMappedRange());
|
||||
buffer.unmap();
|
||||
}
|
||||
return buffer;
|
||||
|
||||
Reference in New Issue
Block a user