예제 #1
0
        public static IConstantBuffer Create <T>(D3D11GraphicsDevice graphicsDevice, T constants) where T : struct
        {
            var buffer = new D3D11ConstantBuffer(graphicsDevice);

            buffer.Initialize(constants);
            return(buffer);
        }
예제 #2
0
 public IConstantBuffer CreateConstantBuffer <T>(T constants) where T : struct
 {
     return(D3D11ConstantBuffer.Create(_graphicsDevice, constants));
 }