mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-12-19 02:42:01 +00:00
Fix invariant position not doing its job
This commit is contained in:
parent
d22feff1d2
commit
e3468d35b6
1 changed files with 3 additions and 1 deletions
|
@ -38,8 +38,10 @@ namespace Ryujinx.Graphics.Metal
|
||||||
{
|
{
|
||||||
ShaderSource shader = shaders[index];
|
ShaderSource shader = shaders[index];
|
||||||
|
|
||||||
|
var compileOptions = new MTLCompileOptions { PreserveInvariance = true };
|
||||||
|
|
||||||
var libraryError = new NSError(IntPtr.Zero);
|
var libraryError = new NSError(IntPtr.Zero);
|
||||||
var shaderLibrary = device.NewLibrary(StringHelper.NSString(shader.Code), new MTLCompileOptions(IntPtr.Zero), ref libraryError);
|
var shaderLibrary = device.NewLibrary(StringHelper.NSString(shader.Code), compileOptions, ref libraryError);
|
||||||
if (libraryError != IntPtr.Zero)
|
if (libraryError != IntPtr.Zero)
|
||||||
{
|
{
|
||||||
Logger.Warning?.PrintMsg(LogClass.Gpu, shader.Code);
|
Logger.Warning?.PrintMsg(LogClass.Gpu, shader.Code);
|
||||||
|
|
Loading…
Reference in a new issue