C# Class Fusion.Drivers.Graphics.ShaderResource

Inheritance: GraphicsResource
Afficher le fichier Open project: demiurghg/FusionEngine Class Usage Examples

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode 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 méthode

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

CheckSamplesCount() protected méthode

protected CheckSamplesCount ( int samples ) : void
samples int
Résultat void

Dispose() protected méthode

Disposes
protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

GetMipSize() public static méthode

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
Résultat int

GetPitch() public static méthode

Computes shader resource pitch
public static GetPitch ( ColorFormat format, int width ) : int
format ColorFormat
width int
Résultat int

MakeSRgb() protected méthode

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

MakeTypeless() protected méthode

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

ShaderResource() protected méthode

protected ShaderResource ( GraphicsDevice device ) : System
device GraphicsDevice
Résultat System

ShaderResource() protected méthode

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
Résultat System