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

HLSL: support select() intristic #3825

Open
Andreyogld3d opened this issue Dec 29, 2024 · 0 comments
Open

HLSL: support select() intristic #3825

Andreyogld3d opened this issue Dec 29, 2024 · 0 comments

Comments

@Andreyogld3d
Copy link

Hi! We need to add "select" intristic support

struct PS {
	float4 pos : SV_POSITION;
	float4 color : COLOR0;
};

PS main(in float4 pos : SV_POSITION, in float4 color : COLOR0)
{
	PS o;
	o.pos = pos;
	o.color = select(pos.zzzz <= color, float4(0.0f, 0.0f, 0.0f, 0.0f), float4(1.0f, 1.0f, 1.0f, 1.0f));
	return o;
}

glslang.exe -D -V -e main test.vert test.vert ERROR: test.vert:10: 'select' : no matching overloaded function found ERROR: test.vert:10: 'declaration' : Expected test.vert(10): error at column 101, HLSL parsing failed. ERROR: 3 compilation errors. No code generated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants