update uniform API

main
cosmonaut 2021-02-02 16:34:40 -08:00
parent 68bb51439f
commit 0daf548fd3
2 changed files with 4 additions and 4 deletions

@ -1 +1 @@
Subproject commit 11d5671762bc999663672959568399b8e564420f
Subproject commit fcb16a6121f556b2aebfbb7e72b71e94041dc1d1

View File

@ -79,7 +79,7 @@ namespace MoonWorks.Graphics
Device.Handle,
Handle,
(IntPtr) ptr,
(uint) uniforms.Length
(uint) (uniforms.Length * Marshal.SizeOf<T>())
);
}
}
@ -138,7 +138,7 @@ namespace MoonWorks.Graphics
Device.Handle,
Handle,
(IntPtr) ptr,
(uint) uniforms.Length
(uint) (uniforms.Length * Marshal.SizeOf<T>())
);
}
}
@ -153,7 +153,7 @@ namespace MoonWorks.Graphics
Device.Handle,
Handle,
(IntPtr) ptr,
(uint) uniforms.Length
(uint) (uniforms.Length * Marshal.SizeOf<T>())
);
}
}