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

Missing SM 6.6 function: IsHelperLane() #4444

Closed
chaoticbob opened this issue Jun 20, 2024 · 2 comments · Fixed by #4471
Closed

Missing SM 6.6 function: IsHelperLane() #4444

chaoticbob opened this issue Jun 20, 2024 · 2 comments · Fixed by #4471
Assignees
Labels
goal:client support Feature or fix needed for a current slang user. GoodFirstBug Great bug for people getting going in slang codebase kind:enhancement a desirable new feature, option, or behavior

Comments

@chaoticbob
Copy link
Collaborator

Compiling the shader below results in this error message:

shader.hlsl(8): error 30015: undefined identifier 'IsHelperLane'.
    if (IsHelperLane()) ret = 2.0;
        ^~~~~~~~~~~~

CMD

slangc.exe -target spirv -lang slang -D__spirv__ -emit-spirv-directly -profile ps_6_6 -entry main

Would be useful to have this function to ease porting of advanced shaders.

Shader

float4 main() : SV_Target {
    float ret = 1.0;

    if (IsHelperLane()) ret = 2.0;

    return (float4)ret;
}
@jkwak-work
Copy link
Collaborator

This looks like a good first bug for @venkataram-nv .
I am assigning it to him.

@jkwak-work jkwak-work added the GoodFirstBug Great bug for people getting going in slang codebase label Jun 20, 2024
@chaoticbob
Copy link
Collaborator Author

Just FYI...for both DXC emulates this function starting in SM 6.0 and before SM 6.6.

@ArielG-NV ArielG-NV added kind:enhancement a desirable new feature, option, or behavior goal:client support Feature or fix needed for a current slang user. labels Jun 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
goal:client support Feature or fix needed for a current slang user. GoodFirstBug Great bug for people getting going in slang codebase kind:enhancement a desirable new feature, option, or behavior
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants