Add support half type value

More
2 years 4 weeks ago #1 by Iddqd
Add support half type value was created by Iddqd
Hello! It would be great if reshade have support half/lowp type for float, int and vectors. In most cases it enough for Post Processing shaders.

Please Log in or Create an account to join the conversation.

More
2 years 3 weeks ago #2 by Marty McFly
Replied by Marty McFly on topic Add support half type value
It's mostly mapped to 32 bit anyways, nowadays only mobile supports it.

Please Log in or Create an account to join the conversation.

More
2 years 3 weeks ago - 2 years 3 weeks ago #3 by crosire
Replied by crosire on topic Add support half type value
HLSL has no concept of 16-bit floats anymore (except for an extension): docs.microsoft.com/en-us/windows/desktop...graphics-hlsl-scalar ("This data type is provided only for language compatibility. Direct3D 10 shader targets map all half data types to float data types.").
GLSL has, but those are mapped to 32-bit on desktop as well, like Marty said.
Last edit: 2 years 3 weeks ago by crosire.

Please Log in or Create an account to join the conversation.

More
2 years 3 weeks ago - 2 years 3 weeks ago #4 by CeeJay.dk
Replied by CeeJay.dk on topic Add support half type value
Support for half/lowp precision is coming back to PC hardware.

See github.com/Microsoft/DirectXShaderCompil.../16-Bit-Scalar-Types

But most hardware still map halfs to float. It is going to take a while before using anything other than single precision in Reshade will make any sense.

On the latest hardware you could technically use min16float and min16int (and variants), but Reshade would have to support them first and check to see if the user was on Win7 or earlier as min16float support was first introduced with Win8.

I just doubt you are going to see any real improvement in performance ATM.
Last edit: 2 years 3 weeks ago by CeeJay.dk.
The following user(s) said Thank You: Wicked Sick

Please Log in or Create an account to join the conversation.