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

Test varying inputs and outputs for wgsl #5669

Merged
merged 3 commits into from
Dec 2, 2024

Conversation

expipiplus1
Copy link
Collaborator

@expipiplus1 expipiplus1 commented Nov 25, 2024

Closes #5067

New tests, covering what's declared supported in the WGSL support docs

  • tests/wgsl/semantic-coverage.slang
  • tests/wgsl/semantic-depth.slang
  • tests/wgsl/semantic-dispatch-thread-id.slang
  • tests/wgsl/semantic-group-id.slang
  • tests/wgsl/semantic-group-index.slang
  • tests/wgsl/semantic-group-thread-id.slang
  • tests/wgsl/semantic-instance-id.slang
  • tests/wgsl/semantic-is-front-face.slang
  • tests/wgsl/semantic-position.slang
  • tests/wgsl/semantic-sample-index.slang
  • tests/wgsl/semantic-vertex-id.slang

WGSL enabled existing tests:

  • tests/compute/compile-time-loop.slang
  • tests/compute/constexpr.slang
  • tests/compute/discard-stmt.slang
  • tests/metal/nested-struct-fragment-input.slang
  • tests/metal/nested-struct-fragment-output.slang
  • tests/metal/nested-struct-multi-entry-point-vertex.slang
  • tests/metal/no-struct-vertex-output.slang
  • tests/metal/sv_target-complex-1.slang
  • tests/metal/sv_target-complex-2.slang
  • tests/bugs/texture2d-gather.hlsl
  • tests/render/cross-compile-entry-point.slang
  • tests/render/nointerpolation.hlsl
  • tests/render/render0.hlsl
  • tests/render/cross-compile0.hlsl
  • tests/render/imported-parameters.hlsl
  • tests/render/unused-discard.hlsl

Can't be enabled due to missing wgsl features

  • tests/compute/texture-sampling.slang

@expipiplus1 expipiplus1 added the pr: non-breaking PRs without breaking changes label Nov 25, 2024
@expipiplus1 expipiplus1 added this to the Q4 2024 (Fall) milestone Nov 25, 2024
@expipiplus1 expipiplus1 self-assigned this Nov 25, 2024
@expipiplus1 expipiplus1 requested a review from a team as a code owner November 25, 2024 11:57
@aleino-nv
Copy link
Collaborator

Is this for #5067?

@aleino-nv
Copy link
Collaborator

Failing test:

tests/metal/atomic-intrinsics.slang(23): error 36107: entrypoint 'computeMain' does not support compilation target 'wgsl' with stage 'compute'

I think we need to disable this one, or create a WGSL-specific version. WGSL doesn't support the Interocked* functions.

@expipiplus1 expipiplus1 changed the title Varying inputs and outputs for wgsl Test varying inputs and outputs for wgsl Nov 25, 2024
@expipiplus1 expipiplus1 force-pushed the push-qtwvolruuqpx branch 2 times, most recently from 0c1fb21 to 8f55388 Compare November 29, 2024 06:53
@expipiplus1 expipiplus1 enabled auto-merge (squash) November 29, 2024 07:03
@expipiplus1 expipiplus1 force-pushed the push-qtwvolruuqpx branch 3 times, most recently from e22d90a to d35f5c8 Compare November 29, 2024 07:59
Closes shader-slang#5067

New tests, covering what's declared supported in the WGSL support docs

- tests/wgsl/semantic-coverage.slang
- tests/wgsl/semantic-depth.slang
- tests/wgsl/semantic-dispatch-thread-id.slang
- tests/wgsl/semantic-group-id.slang
- tests/wgsl/semantic-group-index.slang
- tests/wgsl/semantic-group-thread-id.slang
- tests/wgsl/semantic-instance-id.slang
- tests/wgsl/semantic-is-front-face.slang
- tests/wgsl/semantic-position.slang
- tests/wgsl/semantic-sample-index.slang
- tests/wgsl/semantic-vertex-id.slang

WGSL enabled existing tests:
- tests/compute/compile-time-loop.slang
- tests/compute/constexpr.slang
- tests/compute/discard-stmt.slang
- tests/metal/nested-struct-fragment-input.slang
- tests/metal/nested-struct-fragment-output.slang
- tests/metal/nested-struct-multi-entry-point-vertex.slang
- tests/metal/no-struct-vertex-output.slang
- tests/metal/sv_target-complex-1.slang
- tests/metal/sv_target-complex-2.slang
- tests/bugs/texture2d-gather.hlsl
- tests/render/cross-compile-entry-point.slang
- tests/render/nointerpolation.hlsl
- tests/render/render0.hlsl
- tests/render/cross-compile0.hlsl
- tests/render/imported-parameters.hlsl
- tests/render/unused-discard.hlsl

Can't be enabled due to missing wgsl features

- tests/compute/texture-sampling.slang
@csyonghe csyonghe disabled auto-merge December 2, 2024 19:44
@csyonghe csyonghe merged commit 7aaf700 into shader-slang:master Dec 2, 2024
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr: non-breaking PRs without breaking changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

WGSL: Varyings
3 participants