Add support half type value

  • Posts: 40
1 year 10 months ago #1 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.

  • Posts: 1221
1 year 10 months ago #2 by Marty McFly
It's mostly mapped to 32 bit anyways, nowadays only mobile supports it.

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

  • Posts: 3741
1 year 10 months ago - 1 year 10 months ago #3 by crosire
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.

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

  • Posts: 60
1 year 10 months ago - 1 year 10 months ago #4 by CeeJay.dk
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.
The following user(s) said Thank You: Wicked Sick

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