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

Packet in/out variables are handled incorrectly #39

Open
TiemoJung opened this issue Sep 21, 2016 · 0 comments
Open

Packet in/out variables are handled incorrectly #39

TiemoJung opened this issue Sep 21, 2016 · 0 comments

Comments

@TiemoJung
Copy link

Hi,

when the HLSL shader compiler decides to pack multiple in/out variables into one vec4, only the first decl is emitted correctly. Resulting in wrong in/out temp variable types, assignments and swizzle/index operations.

An example for a packet in/out would be:

struct VS_Out {
float2 var1 : TEXCOORD0;
float4 var2 : TEXCOORD1;
float var3 : TEXCOORD2;
};

The HLSL compiler will pack var3 and var1 into one float3 in/out register and this breaks HLSLcc.

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

No branches or pull requests

1 participant