Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support for integer/data textures in WebGL2 and WebGPU (#5921)
* Support for integer/data textures in WebGL2 and WebGPU * Add newline to fix lint * Fix RG16I string label * Add optional check * Change comment to Not supported on WebGL1 Co-authored-by: Martin Valigursky <59932779+mvaligursky@users.noreply.github.com> * Clean up uniform buffer storage selection and padding * Clean up spaces * Update WebGL1 not supported comment * Use boolean flag to indicate integer pixel format * Reorder constants and fix webgpu typo * Keep original textureDimensions order in shader-processor * Revert uniform-buffer with minimal additions * Do not allow changing integer texture mipmap/filter properties, log warning * Revert formatting changes to compressed formats * Revert previous comment change * Keep original order of pcUniformType in webgl-graphics-device * Keep original order in webgl-graphics-device * Minimize import diff * Minimize import diff * Sand simulation example * Clean up example a bit * Clean up some lines * Use single int texture instead of uvec2 * Add additional keyboard shortcuts * Reuse vertex shader, add comment * Add comments to resetData * Remove undefined throws * Use example description, remove screen and assets, add comments * Revert description width change * Add a WebGL1 warning in controls panel * Accept options object when creating shaders, allow changing outputType for every attachment * Remove console log * Update src/platform/graphics/shader-utils.js * Additional PR comments * Update src/scene/graphics/render-pass-shader-quad.js * Update src/scene/graphics/render-pass-shader-quad.js * Add note explaining use of 'comparison' for integer textures * Update src/platform/graphics/webgpu/webgpu-bind-group-format.js Co-authored-by: Will Eastcott <will@playcanvas.com> * Update src/platform/graphics/shader-utils.js Co-authored-by: Will Eastcott <will@playcanvas.com> * Apply suggestions from code review Co-authored-by: Will Eastcott <will@playcanvas.com> * Update src/scene/graphics/render-pass-shader-quad.js Co-authored-by: Will Eastcott <will@playcanvas.com> * For unsigned pixel formats, use U instead of UI * Change string names of pixelFormatInfo --------- Co-authored-by: Martin Valigursky <59932779+mvaligursky@users.noreply.github.com> Co-authored-by: Will Eastcott <will@playcanvas.com>
- Loading branch information