Closed yyc-git closed 4 years ago
This is how I did it in my path tracer, see here
@maierfelix you have use texture array instead of bindless texture~
texture array require each texture has the same size in the array. it's more limit than bindless texture.
WebGPU doesn't support bindless textures/resources, the current alternative is descriptor indexing which is enabled in my fork. If you want to sample textures with different sizes, then use a plain buffer and do the texture filtering (e.g. linear) inside the shader
@maierfelix Thanks very much for your suggestion! I will investigate it~ Thank you!
Need it in ray tracing! Will support it? Thanks very much!