Skip to content

Commit

Permalink
Fix shader compilation on UE4
Browse files Browse the repository at this point in the history
This patch allows Rive shaders to compile under the conditions of UE4's DirectX 11 config by:

* Disabling some unsupported D3D features when the device feature level is below 11_1
* Changing min16int/min16uint to int/uint, as these types aren't supported
* Adding explicit rounding from float to half values, as this causes warnings which are treated as errors

Authored-by: Elliot Colp <[email protected]>

Diffs=
  • Loading branch information
csmartdalton committed May 23, 2024
1 parent 8a7b891 commit 3943db2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .rive_renderer
Original file line number Diff line number Diff line change
@@ -1 +1 @@
c25b70544d5fa4a5503a915b0fec80521604e9fb
0f344fbdba610f9569234e3244d82695d0e86768

0 comments on commit 3943db2

Please sign in to comment.