Esempio n. 1
0
 public D3D11Texture(Texture2D existingTexture)
 {
     DeviceTexture = existingTexture;
     Width         = (uint)existingTexture.Description.Width;
     Height        = (uint)existingTexture.Description.Height;
     Depth         = 1;
     MipLevels     = (uint)existingTexture.Description.MipLevels;
     ArrayLayers   = (uint)existingTexture.Description.ArraySize;
     Format        = D3D11Formats.ToVdFormat(existingTexture.Description.Format);
 }
Esempio n. 2
0
 public D3D11Texture(Texture2D existingTexture)
 {
     DeviceTexture = existingTexture;
     Width         = (uint)existingTexture.Description.Width;
     Height        = (uint)existingTexture.Description.Height;
     Depth         = 1;
     MipLevels     = (uint)existingTexture.Description.MipLevels;
     ArrayLayers   = (uint)existingTexture.Description.ArraySize;
     Format        = D3D11Formats.ToVdFormat(existingTexture.Description.Format);
     SampleCount   = D3D11Formats.ToVdSampleCount(existingTexture.Description.SampleDescription);
     Type          = TextureType.Texture2D;
     Usage         = TextureUsage.RenderTarget;
 }