Texture

class Texture : GraphicsResource, System.IDisposable
readonly SurfaceFormat Format
readonly int LevelCount
int get_SortingKey()
int CalculateMipLevels(int width, int height, int depth)
Parameters:
  • width (int) –
  • height (int) –
  • depth (int) –
void GetSizeForLevel(int width, int height, int level, ref int w, ref int h)
Parameters:
  • width (int) –
  • height (int) –
  • level (int) –
  • (ref) w (int) –
  • (ref) h (int) –
void GetSizeForLevel(int width, int height, int depth, int level, ref int w, ref int h, ref int d)
Parameters:
  • width (int) –
  • height (int) –
  • depth (int) –
  • level (int) –
  • (ref) w (int) –
  • (ref) h (int) –
  • (ref) d (int) –
int GetPitch(int width)
Parameters:
  • width (int) –
void GraphicsDeviceResetting()
public System.IntPtr GetSharedHandle()

Gets the handle to a shared resource.

Returns:The handle of the shared resource, or F:System.IntPtr.Zero if the texture was not created as a shared resource.
abstract SharpDX.Direct3D11.Resource CreateTexture()
SharpDX.Direct3D11.Resource GetTexture()
SharpDX.Direct3D11.ShaderResourceView GetShaderResourceView()