Spaces:
Running
Running
organized imports
Browse files
index.js
CHANGED
@@ -1,11 +1,11 @@
|
|
1 |
import { mat4 } from 'https://webgpufundamentals.org/3rdparty/wgpu-matrix.module.js';
|
|
|
|
|
2 |
import { fetchShaderCode, generateGlyphTextureAtlas, createTextureFromSource } from './wgpu-utility.js';
|
3 |
-
import { config } from './wgpu-config.js';
|
4 |
-
import { CANVAS, CTX, COLORS, RENDER_PASS_DESCRIPTOR } from './wgpu-constants.js';
|
5 |
import { createPipeline } from './wgpu-pipeline.js';
|
6 |
-
import { createState } from './wgpu-state.js';
|
7 |
import { generateGlyphVerticesForText } from './wgpu-text.js';
|
8 |
-
import {
|
|
|
9 |
|
10 |
const canvas = document.querySelector('canvas');
|
11 |
const state = createState(config);
|
|
|
1 |
import { mat4 } from 'https://webgpufundamentals.org/3rdparty/wgpu-matrix.module.js';
|
2 |
+
import { initializeWebGPU } from './wgpu-devices.js';
|
3 |
+
import { createState } from './wgpu-state.js';
|
4 |
import { fetchShaderCode, generateGlyphTextureAtlas, createTextureFromSource } from './wgpu-utility.js';
|
|
|
|
|
5 |
import { createPipeline } from './wgpu-pipeline.js';
|
|
|
6 |
import { generateGlyphVerticesForText } from './wgpu-text.js';
|
7 |
+
import { config } from './wgpu-config.js';
|
8 |
+
import { CANVAS, CTX, COLORS, RENDER_PASS_DESCRIPTOR } from './wgpu-constants.js';
|
9 |
|
10 |
const canvas = document.querySelector('canvas');
|
11 |
const state = createState(config);
|