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

Invalid type for imagestore input #20

Open
mboucha1 opened this issue Mar 31, 2017 · 1 comment
Open

Invalid type for imagestore input #20

mboucha1 opened this issue Mar 31, 2017 · 1 comment

Comments

@mboucha1
Copy link

Getting invalid parameter for imagestore when a constant buffers's uint value is used as input.

layout(set = 1, binding = 1, std140) uniform cbuffer {
uint value0;
}

imageStore(... , ... , int(value));

where it should be

imageStore(... , ... , int4(value));

Michel

@mboucha1
Copy link
Author

The TO_AUTO_EXPAND_TO_VEC4 should be enforced for the last operand:
TranslateOperand(&psInst->asOperands[2], ResourceReturnTypeToFlag(psRes->ui32ReturnType));

This is fixing the issue:
TranslateOperand(&psInst->asOperands[2], ResourceReturnTypeToFlag(psRes->ui32ReturnType) | TO_AUTO_EXPAND_TO_VEC4);

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