public void DumpDeviceStatus() { int atm = MdxRender.Dev.AvailableTextureMemory; TextureCaps tc = MdxRender.DeviceInfo.caps.TextureCaps; Trace.WriteLine("Available texture memory: " + atm.ToString()); Trace.WriteLine("Texture caps:"); Trace.WriteLine(tc.ToString()); }
public static void ListTextureCaps(TextureCaps textureCaps, ListBox listCaps) { listCaps.Items.Add(" ----- Texture Caps ------------------------"); if(textureCaps.SupportsPerspective) { listCaps.Items.Add("Perspective correction texturing is supported. "); } if(textureCaps.SupportsPower2) { listCaps.Items.Add("All textures must have widths and heights specified as powers of 2. " + "This requirement does not apply to either cube textures or volume textures. "); } if(textureCaps.SupportsAlpha) { listCaps.Items.Add("Alpha in texture pixels is supported. "); } if(textureCaps.SupportsSquareOnly) { listCaps.Items.Add("All textures must be square. "); } if(textureCaps.SupportsTextureRepeatNotScaledBySize) { listCaps.Items.Add("Texture indices are not scaled by the texture size prior to interpolation. "); } if(textureCaps.SupportsAlphaPalette) { listCaps.Items.Add("Device can draw alpha from texture palettes. "); } if(textureCaps.SupportsNonPower2Conditional) { listCaps.Items.Add("Conditionally supports the use of textures with dimensions that are not powers of 2.. "); } if(textureCaps.SupportsProjected) { listCaps.Items.Add("Supports the projected texture transformation flag. "); } if(textureCaps.SupportsCubeMap) { listCaps.Items.Add("Supports cube textures. "); } if(textureCaps.SupportsVolumeMap) { listCaps.Items.Add("Device supports volume textures. "); } if(textureCaps.SupportsMipMap) { listCaps.Items.Add("Device supports mipmapped textures. "); } if(textureCaps.SupportsMipVolumeMap) { listCaps.Items.Add("Device supports mipmapped textures. "); } if(textureCaps.SupportsMipCubeMap) { listCaps.Items.Add("Device supports mipmapped cube textures. "); } if(textureCaps.SupportsCubeMapPower2) { listCaps.Items.Add("Device requires that cube texture maps have dimensions specified as powers of 2. "); } if(textureCaps.SupportsVolumeMapPower2) { listCaps.Items.Add("Device requires that volume texture maps have dimensions specified as powers of 2. "); } }
public static void ListTextureCaps(TextureCaps textureCaps, ListBox listCaps) { listCaps.Items.Add(" ----- Texture Caps ------------------------"); if (textureCaps.SupportsPerspective) { listCaps.Items.Add("Perspective correction texturing is supported. "); } if (textureCaps.SupportsPower2) { listCaps.Items.Add("All textures must have widths and heights specified as powers of 2. " + "This requirement does not apply to either cube textures or volume textures. "); } if (textureCaps.SupportsAlpha) { listCaps.Items.Add("Alpha in texture pixels is supported. "); } if (textureCaps.SupportsSquareOnly) { listCaps.Items.Add("All textures must be square. "); } if (textureCaps.SupportsTextureRepeatNotScaledBySize) { listCaps.Items.Add("Texture indices are not scaled by the texture size prior to interpolation. "); } if (textureCaps.SupportsAlphaPalette) { listCaps.Items.Add("Device can draw alpha from texture palettes. "); } if (textureCaps.SupportsNonPower2Conditional) { listCaps.Items.Add("Conditionally supports the use of textures with dimensions that are not powers of 2.. "); } if (textureCaps.SupportsProjected) { listCaps.Items.Add("Supports the projected texture transformation flag. "); } if (textureCaps.SupportsCubeMap) { listCaps.Items.Add("Supports cube textures. "); } if (textureCaps.SupportsVolumeMap) { listCaps.Items.Add("Device supports volume textures. "); } if (textureCaps.SupportsMipMap) { listCaps.Items.Add("Device supports mipmapped textures. "); } if (textureCaps.SupportsMipVolumeMap) { listCaps.Items.Add("Device supports mipmapped textures. "); } if (textureCaps.SupportsMipCubeMap) { listCaps.Items.Add("Device supports mipmapped cube textures. "); } if (textureCaps.SupportsCubeMapPower2) { listCaps.Items.Add("Device requires that cube texture maps have dimensions specified as powers of 2. "); } if (textureCaps.SupportsVolumeMapPower2) { listCaps.Items.Add("Device requires that volume texture maps have dimensions specified as powers of 2. "); } }