FrenzyByte / fluidfrenzy

MIT License
2 stars 0 forks source link

Add XBOX DXC Compiler Support via Shader Macro #11

Closed stonstad closed 1 month ago

stonstad commented 2 months ago

e.g.

if SHADER_API_D3D12 && SHADER_API_XBOXONE

pragma use_dxc

endif

image image

FrenzyByte commented 1 month ago

The compile errors have been fixed and DXC support has been added under the SHADER_API_XBOXONE macro Unfortunately Unity does not yet distinguish between DX11 and DX12 in shaders as per: link so the use_dxc flag will only work on XBOX by default but will have to manually be turned on if used on PC by uncommenting the FORCE_DXC define.

This will be released on version v1.0.6 in the next few days.