public SpriteBatch(DX11GraphicsDevice dev) { this.dev = dev; }
public MyTexture(DX11GraphicsDevice dev, int width, int height) { this.dev = dev; var descr = new Texture2DDescription { Format = Format.B8G8R8A8_UNorm, Width = width, Height = height, MipLevels = 1, ArraySize = 1, BindFlags = BindFlags.ShaderResource, SampleDescription = new SampleDescription { Count = 1 } }; tex = new Texture2D(dev.device, descr); }