C# Class Fusion.Drivers.Graphics.ShaderResource

Inheritance: GraphicsResource
Show file Open project: demiurghg/FusionEngine Class Usage Examples

Public Methods

Method Description
CalculateMipLevels ( int width, int height, int depth ) : int

Calculates total number of mip levels

GetMipSize ( int size, int mipLevel ) : int

Gets the mip size of resource of giveb size at given mip level.

GetPitch ( ColorFormat format, int width ) : int

Computes shader resource pitch

Protected Methods

Method Description
CheckSamplesCount ( int samples ) : void

Dispose ( bool disposing ) : void

Disposes

MakeSRgb ( SharpDX.DXGI format ) : SharpDX.DXGI.Format

Makes SRgb format from UNorm or Typless.

MakeTypeless ( SharpDX.DXGI format ) : SharpDX.DXGI.Format

Makes Typless format from UNorm or SRgb

ShaderResource ( GraphicsDevice device ) : System

ShaderResource ( GraphicsDevice device, SharpDX.Direct3D11.ShaderResourceView srv, int w, int h, int d ) : System

Method Details

CalculateMipLevels() public static method

Calculates total number of mip levels
public static CalculateMipLevels ( int width, int height, int depth ) : int
width int
height int
depth int
return int

CheckSamplesCount() protected method

protected CheckSamplesCount ( int samples ) : void
samples int
return void

Dispose() protected method

Disposes
protected Dispose ( bool disposing ) : void
disposing bool
return void

GetMipSize() public static method

Gets the mip size of resource of giveb size at given mip level.
public static GetMipSize ( int size, int mipLevel ) : int
size int Original size
mipLevel int Mip level
return int

GetPitch() public static method

Computes shader resource pitch
public static GetPitch ( ColorFormat format, int width ) : int
format ColorFormat
width int
return int

MakeSRgb() protected method

Makes SRgb format from UNorm or Typless.
protected MakeSRgb ( SharpDX.DXGI format ) : SharpDX.DXGI.Format
format SharpDX.DXGI
return SharpDX.DXGI.Format

MakeTypeless() protected method

Makes Typless format from UNorm or SRgb
protected MakeTypeless ( SharpDX.DXGI format ) : SharpDX.DXGI.Format
format SharpDX.DXGI
return SharpDX.DXGI.Format

ShaderResource() protected method

protected ShaderResource ( GraphicsDevice device ) : System
device GraphicsDevice
return System

ShaderResource() protected method

protected ShaderResource ( GraphicsDevice device, SharpDX.Direct3D11.ShaderResourceView srv, int w, int h, int d ) : System
device GraphicsDevice
srv SharpDX.Direct3D11.ShaderResourceView
w int
h int
d int
return System