Example #1
0
 public SpriteBatch(DX11GraphicsDevice dev)
 {
     this.dev = dev;
 }
Example #2
0
 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);
 }