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

Add analyzer for input arguments for all 'D2D' intrinsics #874

Merged
merged 9 commits into from
Nov 24, 2024

Conversation

Sergio0694
Copy link
Owner

@Sergio0694 Sergio0694 commented Nov 20, 2024

Closes #769

Description

This PR adds a new analyzer to emit errors if:

  • A D2D API is used with an index out of range for the shader
  • A D2D API is used with a shader input of an invalid type

Example

image

@Sergio0694 Sergio0694 added the feature 🎉 A brand new feature for ComputeSharp label Nov 20, 2024
Copy link
Collaborator

@rickbrew rickbrew left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment goes here

@Sergio0694 Sergio0694 force-pushed the dev/d2d-intrinsic-analyzer branch 2 times, most recently from bbe3976 to 49d9268 Compare November 23, 2024 01:51
Copy link
Collaborator

@rickbrew rickbrew left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

D2D.GetInput() should not be an error on complex inputs

src/ComputeSharp.D2D1/Intrinsics/D2D.cs Outdated Show resolved Hide resolved
@Sergio0694 Sergio0694 merged commit ebef42b into main Nov 24, 2024
24 checks passed
@Sergio0694 Sergio0694 deleted the dev/d2d-intrinsic-analyzer branch November 24, 2024 23:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature 🎉 A brand new feature for ComputeSharp
Projects
None yet
Development

Successfully merging this pull request may close these issues.

No error when using [D2DInputSimple(n)] but reading outside of current pixel
2 participants