Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

does not match the size of the other attachments #2

Open
erwindy opened this issue Feb 1, 2022 · 1 comment
Open

does not match the size of the other attachments #2

erwindy opened this issue Feb 1, 2022 · 1 comment

Comments

@erwindy
Copy link

erwindy commented Feb 1, 2022

image
看报错信息,是size不匹配,这是我的一个解决方法。
image

@xrui94
Copy link

xrui94 commented May 8, 2022

Do not forget to return the "size" in function "InitGPU()" in helper.ts file, and then you can set the texture size when you call "device.createTexture()". It jusk like this:

    const depthTexture = device.createTexture({
        size: [gpu.size[0], gpu.size[1], 1],
        format: "depth24plus",
        usage: GPUTextureUsage.RENDER_ATTACHMENT
    });

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants