public static IConstantBuffer Create <T>(T data) where T : struct { var size = Marshal.SizeOf <T>(); var buffer = new GL46ConstantBuffer(size); buffer.Initialize(data); return(buffer); }
public IConstantBuffer CreateConstantBuffer <T>(T constants) where T : struct { return(GL46ConstantBuffer.Create(constants)); }