maierfelix / webgpu

WebGPU for Node [Deprecated, Unmaintained]
MIT License
244 stars 17 forks source link

Support bindless texture??? #23

Closed yyc-git closed 4 years ago

yyc-git commented 4 years ago

Need it in ray tracing! Will support it? Thanks very much!

maierfelix commented 4 years ago

This is how I did it in my path tracer, see here

yyc-git commented 4 years ago

@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.

maierfelix commented 4 years ago

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

yyc-git commented 4 years ago

@maierfelix Thanks very much for your suggestion! I will investigate it~ Thank you!