mirror of
https://github.com/Rezmason/matrix.git
synced 2026-04-17 05:49:30 -07:00
Ran formatter.
This commit is contained in:
@@ -25,7 +25,6 @@ const effects = {
|
||||
};
|
||||
|
||||
export default class REGLRenderer extends Renderer {
|
||||
|
||||
#glMatrix;
|
||||
#device;
|
||||
#canvasContext;
|
||||
@@ -72,7 +71,6 @@ export default class REGLRenderer extends Renderer {
|
||||
}
|
||||
|
||||
this.#rebuildingPipeline = (async () => {
|
||||
|
||||
const glMatrix = this.#glMatrix;
|
||||
const canvas = this.canvas;
|
||||
const cache = this.cache;
|
||||
@@ -205,10 +203,10 @@ export default class REGLRenderer extends Renderer {
|
||||
if (this.destroyed) return;
|
||||
const oldDevice = this.#device;
|
||||
if (oldDevice != null) {
|
||||
(async () => {
|
||||
async () => {
|
||||
await oldDevice.queue.onSubmittedWorkDone();
|
||||
oldDevice.destroy();
|
||||
});
|
||||
};
|
||||
}
|
||||
this.#device = null;
|
||||
super.destroy();
|
||||
|
||||
@@ -1,10 +1,7 @@
|
||||
const loadTexture = async (device, cache, url) => {
|
||||
|
||||
const format = "rgba8unorm";
|
||||
const usage =
|
||||
GPUTextureUsage.TEXTURE_BINDING |
|
||||
GPUTextureUsage.COPY_DST |
|
||||
GPUTextureUsage.RENDER_ATTACHMENT;
|
||||
GPUTextureUsage.TEXTURE_BINDING | GPUTextureUsage.COPY_DST | GPUTextureUsage.RENDER_ATTACHMENT;
|
||||
|
||||
if (url == null) {
|
||||
return device.createTexture({
|
||||
|
||||
Reference in New Issue
Block a user