Exemple #1
0
 public TexMetadata(
     Size_t width,
     Size_t height,
     Size_t depth,
     Size_t arraySize,
     Size_t mipLevels,
     TEX_MISC_FLAG miscFlags,
     TEX_MISC_FLAG2 miscFlags2,
     DXGI_FORMAT format,
     TEX_DIMENSION dimension)
 {
     this.Width      = width;
     this.Height     = height;
     this.Depth      = depth;
     this.ArraySize  = arraySize;
     this.MipLevels  = mipLevels;
     this.MiscFlags  = miscFlags;
     this.MiscFlags2 = miscFlags2;
     this.Format     = format;
     this.Dimension  = dimension;
 }
Exemple #2
0
 public void SetAlphaMode(TEX_ALPHA_MODE mode)
 {
     this.MiscFlags2 = (TEX_MISC_FLAG2)(((uint)this.MiscFlags2 & ~(uint)TEX_MISC_FLAG2.ALPHA_MODE_MASK) | (uint)mode);
 }