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

Support for integer/data textures in WebGL2 and WebGPU #5921

Merged
merged 46 commits into from
Jan 19, 2024
Merged
Show file tree
Hide file tree
Changes from 36 commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
2d92cdd
Support for integer/data textures in WebGL2 and WebGPU
liamdon Dec 28, 2023
441ddef
Add newline to fix lint
liamdon Dec 28, 2023
fb82f38
Fix RG16I string label
liamdon Dec 29, 2023
a5aff3e
Add optional check
liamdon Dec 29, 2023
cf7e085
Change comment to Not supported on WebGL1
liamdon Jan 11, 2024
167dbf3
Merge branch 'playcanvas:main' into integerTextures
liamdon Jan 11, 2024
e0e9d48
Clean up uniform buffer storage selection and padding
liamdon Jan 11, 2024
eadc793
Clean up spaces
liamdon Jan 11, 2024
faed1b2
Update WebGL1 not supported comment
liamdon Jan 11, 2024
0aad9e7
Use boolean flag to indicate integer pixel format
liamdon Jan 11, 2024
d120a5e
Reorder constants and fix webgpu typo
liamdon Jan 12, 2024
a9b19fc
Keep original textureDimensions order in shader-processor
liamdon Jan 12, 2024
226f820
Revert uniform-buffer with minimal additions
liamdon Jan 12, 2024
5d4a7c5
Do not allow changing integer texture mipmap/filter properties, log w…
liamdon Jan 12, 2024
8a507bf
Revert formatting changes to compressed formats
liamdon Jan 12, 2024
b06dd17
Revert previous comment change
liamdon Jan 12, 2024
de39dbf
Keep original order of pcUniformType in webgl-graphics-device
liamdon Jan 12, 2024
3f75752
Keep original order in webgl-graphics-device
liamdon Jan 12, 2024
8db0a1e
Minimize import diff
liamdon Jan 12, 2024
d696041
Minimize import diff
liamdon Jan 12, 2024
ad242c9
Sand simulation example
liamdon Jan 14, 2024
1b98c07
Clean up example a bit
liamdon Jan 15, 2024
58b8af5
Clean up some lines
liamdon Jan 15, 2024
450c4fc
Use single int texture instead of uvec2
liamdon Jan 15, 2024
ed815d9
Add additional keyboard shortcuts
liamdon Jan 15, 2024
2072c1d
Reuse vertex shader, add comment
liamdon Jan 15, 2024
a418af4
Add comments to resetData
liamdon Jan 15, 2024
893b5ca
Remove undefined throws
liamdon Jan 15, 2024
0a5e4f2
Use example description, remove screen and assets, add comments
liamdon Jan 15, 2024
1757afc
Revert description width change
liamdon Jan 15, 2024
3c87f7f
Add a WebGL1 warning in controls panel
liamdon Jan 15, 2024
c4d3a8f
Accept options object when creating shaders, allow changing outputTyp…
liamdon Jan 15, 2024
63febb9
Remove console log
liamdon Jan 15, 2024
4b9bfbd
Merge branch 'playcanvas:main' into integerTextures
liamdon Jan 15, 2024
d4bd689
Update src/platform/graphics/shader-utils.js
mvaligursky Jan 16, 2024
37e062f
Additional PR comments
liamdon Jan 16, 2024
8df55e1
Update src/scene/graphics/render-pass-shader-quad.js
mvaligursky Jan 17, 2024
4dd0110
Update src/scene/graphics/render-pass-shader-quad.js
mvaligursky Jan 17, 2024
1f111c2
Add note explaining use of 'comparison' for integer textures
liamdon Jan 17, 2024
a429aae
Update src/platform/graphics/webgpu/webgpu-bind-group-format.js
liamdon Jan 17, 2024
4f2e1b3
Update src/platform/graphics/shader-utils.js
liamdon Jan 17, 2024
a90f77d
Apply suggestions from code review
liamdon Jan 17, 2024
b401817
Update src/scene/graphics/render-pass-shader-quad.js
liamdon Jan 17, 2024
b93cd2c
Merge branch 'playcanvas:main' into integerTextures
liamdon Jan 18, 2024
a436a9f
For unsigned pixel formats, use U instead of UI
liamdon Jan 18, 2024
9c6a482
Change string names of pixelFormatInfo
liamdon Jan 18, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions examples/src/examples/graphics/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export * from "./grab-pass.mjs";
export * from "./ground-fog.mjs";
export * from "./hardware-instancing.mjs";
export * from "./hierarchy.mjs";
export * from "./integer-textures.mjs";
export * from "./layers.mjs";
export * from "./lights-baked-a-o.mjs";
export * from "./lights-baked.mjs";
Expand Down
Loading