mirror of
https://github.com/Rezmason/matrix.git
synced 2026-04-17 05:49:30 -07:00
Added WebGPU support and added caching to the WebGPU version.
This commit is contained in:
@@ -6,6 +6,8 @@ import {
|
||||
makeBindGroup,
|
||||
makePass,
|
||||
} from "./utils.js";
|
||||
import bloomBlurShader from "../../shaders/wgsl/bloomBlur.wgsl";
|
||||
import bloomCombineShader from "../../shaders/wgsl/bloomCombine.wgsl";
|
||||
|
||||
// const makePyramid = makeComputeTarget;
|
||||
|
||||
@@ -54,8 +56,8 @@ export default ({ config, device }) => {
|
||||
}
|
||||
|
||||
const assets = [
|
||||
loadShader(device, "shaders/wgsl/bloomBlur.wgsl"),
|
||||
loadShader(device, "shaders/wgsl/bloomCombine.wgsl"),
|
||||
loadShader(device, bloomBlurShader),
|
||||
loadShader(device, bloomCombineShader),
|
||||
];
|
||||
|
||||
const linearSampler = device.createSampler({
|
||||
|
||||
Reference in New Issue
Block a user