Moving bloomPass's pyramids off of mipmaps fixes its appearance in Firefox Nightly

This commit is contained in:
Rezmason
2021-12-06 07:34:04 -08:00
parent 9896e2da84
commit 577e94c7d1
4 changed files with 71 additions and 22 deletions

View File

@@ -98,13 +98,6 @@ const make1DTexture = (device, rgbas) => {
return texture;
};
const makePyramidView = (texture, level) =>
texture.createView({
baseMipLevel: level,
mipLevelCount: 1,
dimension: "2d",
});
const makeBindGroup = (device, pipeline, index, entries) =>
device.createBindGroup({
layout: pipeline.getBindGroupLayout(index),
@@ -129,7 +122,6 @@ export {
makeRenderTarget,
makeComputeTarget,
make1DTexture,
makePyramidView,
loadTexture,
loadShader,
makeUniformBuffer,