Beispiel #1
0
        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);
        }
Beispiel #2
0
 public IConstantBuffer CreateConstantBuffer <T>(T constants) where T : struct
 {
     return(GL46ConstantBuffer.Create(constants));
 }