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: Halfs are not recognized as a type #492

Closed
redorav opened this issue Aug 30, 2016 · 3 comments
Closed

HLSL: Halfs are not recognized as a type #492

redorav opened this issue Aug 30, 2016 · 3 comments

Comments

@redorav
Copy link

redorav commented Aug 30, 2016

The only thing that needs to happen really is that they are recognized and promoted to float.

Per https://msdn.microsoft.com/en-us/library/windows/desktop/bb509646(v=vs.85).aspx

"This data type is provided only for language compatibility. Direct3D 10 shader targets map all half data types to float data types."

However many shaders use half because they are also compiled on other platforms.

@dankbaker
Copy link
Contributor

It process the token I notice, should verify that min16float etc work as well.

@johnkslang
Copy link
Member

Moved to issue #362.

@johnkslang
Copy link
Member

Note that the h suffix is now supported, so that #define half float etc. works.

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

3 participants