Skip to content

fix: use unfilterable-float sample type for RGBA32F textures in node culling shader#8553

Merged
mvaligursky merged 1 commit intomainfrom
mv-fix-ios-unfilterable-float
Mar 25, 2026
Merged

fix: use unfilterable-float sample type for RGBA32F textures in node culling shader#8553
mvaligursky merged 1 commit intomainfrom
mv-fix-ios-unfilterable-float

Conversation

@mvaligursky
Copy link
Copy Markdown
Contributor

@mvaligursky mvaligursky commented Mar 25, 2026

iOS doesn't support the float32-filterable WebGPU feature, so rgba32float textures cannot be bound with sampleType: "float" in the bind group layout — they require sampleType: "unfilterable-float".

Changes:

  • Change boundsSphereTexture and transformsTexture declarations from texture_2d<f32> to texture_2d<uff> in the WGSL node culling shader
  • The engine's custom uff type annotation produces the correct unfilterable-float bind group layout while emitting valid texture_2d<f32> WGSL for the GPU
  • Safe on all platforms since these textures are only accessed via textureLoad (no filtering needed)

…culling shader

iOS doesn't support the float32-filterable WebGPU feature, so RGBA32F
textures must use unfilterable-float in the bind group layout. Use the
engine's custom 'uff' type annotation which produces the correct bind
group layout while emitting valid texture_2d<f32> WGSL.

Made-with: Cursor
@mvaligursky mvaligursky self-assigned this Mar 25, 2026
@mvaligursky mvaligursky added the area: graphics Graphics related issue label Mar 25, 2026
@mvaligursky mvaligursky merged commit a3c5608 into main Mar 25, 2026
8 checks passed
@mvaligursky mvaligursky deleted the mv-fix-ios-unfilterable-float branch March 25, 2026 10:00
mvaligursky pushed a commit that referenced this pull request Mar 25, 2026
mvaligursky added a commit that referenced this pull request Mar 25, 2026
…n WebGPU (#8554)

Fixed #8553

Made-with: Cursor

Co-authored-by: Martin Valigursky <mvaligursky@snapchat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: graphics Graphics related issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant