public static IConstantBuffer Create <T>(D3D11GraphicsDevice graphicsDevice, T constants) where T : struct { var buffer = new D3D11ConstantBuffer(graphicsDevice); buffer.Initialize(constants); return(buffer); }
public IConstantBuffer CreateConstantBuffer <T>(T constants) where T : struct { return(D3D11ConstantBuffer.Create(_graphicsDevice, constants)); }