Add support half type value

  • Iddqd
  • Topic Author
More
5 years 7 months 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.

  • Marty McFly
More
5 years 7 months 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.

  • crosire
More
5 years 7 months ago - 5 years 7 months 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: 5 years 7 months ago by crosire.

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

  • CeeJay.dk
More
5 years 7 months ago - 5 years 7 months 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: 5 years 7 months ago by CeeJay.dk.
The following user(s) said Thank You: Wicked Sick

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

We use cookies
We use cookies on our website. Some of them are essential for the operation of the forum. You can decide for yourself whether you want to allow cookies or not. Please note that if you reject them, you may not be able to use all the functionalities of the site.