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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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.

tests/compute/texture-sampling.slang Outdated Show resolved Hide resolved
tests/compute/compile-time-loop.slang Outdated Show resolved Hide resolved
tests/render/nointerpolation.hlsl Outdated Show resolved Hide resolved
@expipiplus1 expipiplus1 changed the title Varying inputs and outputs for wgsl Test varying inputs and outputs for wgsl Nov 25, 2024
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
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
2 participants