Survivalcraft API 1.8.2.3 v1.8.2.3
Survivalcraft 2.4
载入中...
搜索中...
未找到
Engine.Graphics.CompressedTexture2D
类 Engine.Graphics.CompressedTexture2D 继承关系图:
Engine.Graphics.CompressedTexture2D 的协作图:

Public 成员函数

 CompressedTexture2D (int width, int height, int mipLevelsCount, ColorFormat colorFormat, int blockWidth, int blockHeight)
override void AllocateTexture ()
override void SetData< T > (int mipLevel, T[] source, int sourceStartIndex=0)
override void SetData (int mipLevel, nint source)
override void SetDataInternal (int mipLevel, nint source)
override unsafe void SetDataInternal (int mipLevel, void *source)
override void SetData (Image< Rgba32 > source)
override void SetData (int mipLevel, Image< Rgba32 > source)
void SetData (int mipLevel, int imageSize, nint source)
unsafe void SetData (int mipLevel, int imageSize, void *source)
void SetData (int mipLevel, Span< byte > source)
void SetDataInternal (int mipLevel, int imageSize, nint source)
unsafe void SetDataInternal (int mipLevel, int imageSize, void *source)
unsafe void SetDataInternal (int mipLevel, Span< byte > source)
override int GetGpuMemoryUsage ()
override void InitializeTexture2D (int width, int height, int mipLevelsCount, ColorFormat colorFormat)
void VerifyParametersSetData (int mipLevel, int imageSize, nint source)
unsafe void VerifyParametersSetData (int mipLevel, int imageSize, void *source)
void VerifyParametersSetData (int mipLevel, Span< byte > source)
Public 成员函数 继承自 Engine.Graphics.Texture2D
 Texture2D ()
 Texture2D (int width, int height, int mipLevelsCount, ColorFormat colorFormat)
override void Dispose ()
override void HandleDeviceLost ()
override void HandleDeviceReset ()
void DeleteTexture ()
override int GetGpuMemoryUsage ()
virtual void VerifyParametersSetData< T > (int mipLevel, T[] source, int sourceStartIndex=0)
virtual void VerifyParametersSetData (int mipLevel, nint source)
Public 成员函数 继承自 Engine.Graphics.GraphicsResource
 GraphicsResource ()
int GetGpuMemoryUsage ()
void HandleDeviceLost ()
void HandleDeviceReset ()
void VerifyNotDisposed ()

静态 Public 成员函数

static new CompressedTexture2D Load (Stream stream, bool linear=true, int mipLevelsCount=1)
static bool GetParameters (Stream stream, out int width, out int height, out int blockWidth, out int blockHeight)
静态 Public 成员函数 继承自 Engine.Graphics.Texture2D
static void Swap (Texture2D texture1, Texture2D texture2)
static void SwapTexture2D (Texture2D texture1, Texture2D texture2)
static Texture2D Load (LegacyImage image, int mipLevelsCount=1)
static Texture2D Load (Image image, int mipLevelsCount=1)
static Texture2D Load (Image< Rgba32 > image, int mipLevelsCount=1)
static Texture2D Load (Stream stream, bool premultiplyAlpha=false, int mipLevelsCount=1)
static Texture2D Load (string fileName, bool premultiplyAlpha=false, int mipLevelsCount=1)
static Texture2D Load (Color color, int width, int height)

属性

Point2 BlockSize [get]
属性 继承自 Engine.Graphics.Texture2D
IntPtr NativeHandle [get]
string DebugName [get, set]
int Width [get, set]
int Height [get, set]
ColorFormat ColorFormat [get, set]
int MipLevelsCount [get, set]
object Tag [get, set]

Private 属性

InternalFormat m_internalFormat
int m_blockWidth
int m_blockHeight

额外继承的成员函数

Public 属性 继承自 Engine.Graphics.Texture2D
int m_texture
PixelFormat m_pixelFormat
PixelType m_pixelType
Public 属性 继承自 Engine.Graphics.GraphicsResource
bool m_isDisposed
静态 Public 属性 继承自 Engine.Graphics.GraphicsResource
static HashSet< GraphicsResourcem_resources = []

详细描述

在文件 CompressedTexture2D.cs9 行定义.

构造及析构函数说明

◆ CompressedTexture2D()

Engine.Graphics.CompressedTexture2D.CompressedTexture2D ( int width,
int height,
int mipLevelsCount,
ColorFormat colorFormat,
int blockWidth,
int blockHeight )

在文件 CompressedTexture2D.cs16 行定义.

函数调用图:
这是这个函数的调用关系图:

成员函数说明

◆ AllocateTexture()

override void Engine.Graphics.CompressedTexture2D.AllocateTexture ( )
virtual

重载 Engine.Graphics.Texture2D .

在文件 CompressedTexture2D.cs57 行定义.

函数调用图:
这是这个函数的调用关系图:

◆ GetGpuMemoryUsage()

override int Engine.Graphics.CompressedTexture2D.GetGpuMemoryUsage ( )

在文件 CompressedTexture2D.cs144 行定义.

◆ GetParameters()

bool Engine.Graphics.CompressedTexture2D.GetParameters ( Stream stream,
out int width,
out int height,
out int blockWidth,
out int blockHeight )
static

在文件 CompressedTexture2D.cs197 行定义.

这是这个函数的调用关系图:

◆ InitializeTexture2D()

override void Engine.Graphics.CompressedTexture2D.InitializeTexture2D ( int width,
int height,
int mipLevelsCount,
ColorFormat colorFormat )
virtual

重载 Engine.Graphics.Texture2D .

在文件 CompressedTexture2D.cs223 行定义.

函数调用图:
这是这个函数的调用关系图:

◆ Load()

new CompressedTexture2D Engine.Graphics.CompressedTexture2D.Load ( Stream stream,
bool linear = true,
int mipLevelsCount = 1 )
static

在文件 CompressedTexture2D.cs163 行定义.

函数调用图:
这是这个函数的调用关系图:

◆ SetData() [1/6]

override void Engine.Graphics.CompressedTexture2D.SetData ( Image< Rgba32 > source)
virtual

重载 Engine.Graphics.Texture2D .

在文件 CompressedTexture2D.cs76 行定义.

函数调用图:

◆ SetData() [2/6]

override void Engine.Graphics.CompressedTexture2D.SetData ( int mipLevel,
Image< Rgba32 > source )
virtual

重载 Engine.Graphics.Texture2D .

在文件 CompressedTexture2D.cs79 行定义.

函数调用图:

◆ SetData() [3/6]

void Engine.Graphics.CompressedTexture2D.SetData ( int mipLevel,
int imageSize,
nint source )

在文件 CompressedTexture2D.cs81 行定义.

函数调用图:

◆ SetData() [4/6]

unsafe void Engine.Graphics.CompressedTexture2D.SetData ( int mipLevel,
int imageSize,
void * source )

在文件 CompressedTexture2D.cs86 行定义.

函数调用图:

◆ SetData() [5/6]

override void Engine.Graphics.CompressedTexture2D.SetData ( int mipLevel,
nint source )
virtual

重载 Engine.Graphics.Texture2D .

在文件 CompressedTexture2D.cs67 行定义.

函数调用图:
这是这个函数的调用关系图:

◆ SetData() [6/6]

void Engine.Graphics.CompressedTexture2D.SetData ( int mipLevel,
Span< byte > source )

在文件 CompressedTexture2D.cs91 行定义.

函数调用图:

◆ SetData< T >()

override void Engine.Graphics.CompressedTexture2D.SetData< T > ( int mipLevel,
T[] source,
int sourceStartIndex = 0 )
virtual

重载 Engine.Graphics.Texture2D .

类型限制
T :struct 

在文件 CompressedTexture2D.cs64 行定义.

◆ SetDataInternal() [1/5]

void Engine.Graphics.CompressedTexture2D.SetDataInternal ( int mipLevel,
int imageSize,
nint source )

在文件 CompressedTexture2D.cs96 行定义.

函数调用图:

◆ SetDataInternal() [2/5]

unsafe void Engine.Graphics.CompressedTexture2D.SetDataInternal ( int mipLevel,
int imageSize,
void * source )

在文件 CompressedTexture2D.cs111 行定义.

函数调用图:

◆ SetDataInternal() [3/5]

override void Engine.Graphics.CompressedTexture2D.SetDataInternal ( int mipLevel,
nint source )
virtual

重载 Engine.Graphics.Texture2D .

在文件 CompressedTexture2D.cs70 行定义.

函数调用图:
这是这个函数的调用关系图:

◆ SetDataInternal() [4/5]

unsafe void Engine.Graphics.CompressedTexture2D.SetDataInternal ( int mipLevel,
Span< byte > source )

在文件 CompressedTexture2D.cs126 行定义.

函数调用图:

◆ SetDataInternal() [5/5]

override unsafe void Engine.Graphics.CompressedTexture2D.SetDataInternal ( int mipLevel,
void * source )
virtual

重载 Engine.Graphics.Texture2D .

在文件 CompressedTexture2D.cs73 行定义.

函数调用图:

◆ VerifyParametersSetData() [1/3]

void Engine.Graphics.CompressedTexture2D.VerifyParametersSetData ( int mipLevel,
int imageSize,
nint source )

在文件 CompressedTexture2D.cs251 行定义.

函数调用图:
这是这个函数的调用关系图:

◆ VerifyParametersSetData() [2/3]

unsafe void Engine.Graphics.CompressedTexture2D.VerifyParametersSetData ( int mipLevel,
int imageSize,
void * source )

在文件 CompressedTexture2D.cs258 行定义.

函数调用图:

◆ VerifyParametersSetData() [3/3]

void Engine.Graphics.CompressedTexture2D.VerifyParametersSetData ( int mipLevel,
Span< byte > source )

在文件 CompressedTexture2D.cs272 行定义.

函数调用图:

类成员变量说明

◆ m_blockHeight

int Engine.Graphics.CompressedTexture2D.m_blockHeight
private

在文件 CompressedTexture2D.cs12 行定义.

◆ m_blockWidth

int Engine.Graphics.CompressedTexture2D.m_blockWidth
private

在文件 CompressedTexture2D.cs11 行定义.

◆ m_internalFormat

InternalFormat Engine.Graphics.CompressedTexture2D.m_internalFormat
private

在文件 CompressedTexture2D.cs10 行定义.

属性说明

◆ BlockSize

Point2 Engine.Graphics.CompressedTexture2D.BlockSize
get

在文件 CompressedTexture2D.cs14 行定义.


该类的文档由以下文件生成: