Skip to content

Conversation

@klukaszek
Copy link

Adjusted Common.c to support WGSL shaders so the WIP WebGPU backend can be tested using the example suite.

Tested using wgpu-native as the linked library during the SDL build step for WebGPU.

A few WGSL shaders were also added for testing purposes. Not all of them have been translated yet.

My updated PR to the SDL repo will be up shortly too.

@klukaszek klukaszek changed the title Added support for native wgpu support with WGSL shaders only. Added support for native wgpu with WGSL shaders only. Mar 3, 2025
@klukaszek klukaszek changed the title Added support for native wgpu with WGSL shaders only. Added support for native wgpu with WGSL shaders. Mar 3, 2025
@TheSpydog
Copy link
Owner

Closing this out, per libsdl-org/SDL#12046 (comment)

(The end result will likely look pretty similar, but we'll use SDL_shadercross to transpile the shaders.)

@TheSpydog TheSpydog closed this Mar 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants