Survivalcraft API 1.8.2.3 v1.8.2.3
Survivalcraft 2.4
载入中...
搜索中...
未找到
Engine.Graphics.DXWrapper
Engine.Graphics.DXWrapper 的协作图:

静态 Public 成员函数

static void CreateDevice ()
static void Trim ()
static void DisposeDevice ()
static bool ResizeSwapChainIfNeeded ()
static void Present (int presentationInterval)
static int AppendUserVertices< T > (T[] vertices, int vertexStride, int startVertex, int verticesCount)
static int AppendUserIndices (int[] indices, int indexStride, int startIndex, int indicesCount)
static void ApplyViewportScissor (Viewport viewport, Rectangle scissorRectangle)
static void ApplyRasterizerState (RasterizerState rasterizerState)
static void ApplyDepthStencilState (DepthStencilState depthStencilState)
static void ApplyBlendState (BlendState blendState)
static void ApplyVsSamplerState (int slot, SamplerState samplerState)
static void ApplyPsSamplerState (int slot, SamplerState samplerState)
static void ApplyShaderAndRenderTarget (RenderTarget2D renderTarget, Shader shader, VertexDeclaration vertexDeclaration)
static void ApplyVertexBuffer (SharpDX.Direct3D11.Buffer vertexBuffer, int vertexStride, int vertexOffset)
static void ApplyIndexBuffer (SharpDX.Direct3D11.Buffer indexBuffer, Format format, int indexOffset)
static void ApplyPrimitiveType (PrimitiveType primitiveType)
static SharpDX.Direct3D11.SamplerState GetDxSamplerState (SamplerState samplerState)
static PrimitiveTopology TranslatePrimitiveType (PrimitiveType primitiveType)
static ShaderParameterType TranslateShaderTypeDescription (ShaderTypeDescription description)
static ShaderParameterType TranslateInputBindingDescription (InputBindingDescription description)
static Format TranslateVertexElementFormat (VertexElementFormat vertexElementFormat)
static Format TranslateIndexFormat (IndexFormat indexFormat)
static Format TranslateColorFormat (ColorFormat colorFormat)
static Format TranslateDepthFormat (DepthFormat depthFormat)
static BlendOperation TranslateBlendFunction (BlendFunction blendFunction)
static BlendOption TranslateBlend (Blend blend)
static SharpDX.Direct3D11.TextureAddressMode TranslateTextureAddressMode (TextureAddressMode textureAddressMode)
static Filter TranslateTextureFilterMode (TextureFilterMode textureFilterMode)
static Comparison TranslateCompareFunction (CompareFunction compareFunction)
static void CreateBufferViews ()
static void DisposeBufferViews ()
static unsafe void CopyMemory (IntPtr source, IntPtr destination, int count)
static void HandleDeviceLost ()

静态 Public 属性

static Device2 Device
static DeviceContext2 Context
static SwapChain2 SwapChain
static RenderTargetView ColorBufferView
static DepthStencilView DepthBufferView
static FeatureLevel FeatureLevel
static Dictionary< RasterizerState, SharpDX.Direct3D11.RasterizerState > m_dxRasterizerStates = new()
static Dictionary< DepthStencilState, SharpDX.Direct3D11.DepthStencilState > m_dxDepthStencilStates = new()
static Dictionary< BlendState, SharpDX.Direct3D11.BlendState > m_dxBlendStates = new()
static Dictionary< SamplerState, SharpDX.Direct3D11.SamplerState > m_dxSamplerStates = new()
static ? Viewport m_viewport
static ? Rectangle m_scissorRectangle
static IntPtr[] m_dataPointers
static RenderTargetView m_renderTargetView
static DepthStencilView m_depthStencilView
static VertexShader m_vertexShader
static PixelShader m_pixelShader
static InputLayout m_inputLayout
static PrimitiveTopology m_primitiveTopology
static SharpDX.Direct3D11.Buffer m_vertexBuffer
static int m_vertexStride
static int m_vertexOffset
static SharpDX.Direct3D11.Buffer m_indexBuffer
static int m_indexOffset
static RasterizerState m_rasterizerState
static DepthStencilState m_depthStencilState
static BlendState m_blendState
static SamplerState[] m_vsSamplerStates = new SamplerState[16]
static SamplerState[] m_psSamplerStates = new SamplerState[16]
static SharpDX.Direct3D11.Buffer UserVertexBuffer
static SharpDX.Direct3D11.Buffer UserIndexBuffer
static int m_userVertexBufferOffset
static int m_userIndexBufferOffset
static int m_userVertexBufferSize
static int m_userIndexBufferSize
static int REQ_TEXTURE2D_U_OR_V_DIMENSION
static FeatureLevel[] m_featureLevels

详细描述

在文件 DXWrapper.cs 第 14 行定义.

成员函数说明

◆ AppendUserIndices()

int Engine.Graphics.DXWrapper.AppendUserIndices ( int[] indices,
int indexStride,
int startIndex,
int indicesCount )
static

在文件 DXWrapper.cs 第 260 行定义.

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

◆ AppendUserVertices< T >()

int Engine.Graphics.DXWrapper.AppendUserVertices< T > ( T[] vertices,
int vertexStride,
int startVertex,
int verticesCount )
static
类型限制
T :struct 

在文件 DXWrapper.cs 第 223 行定义.

函数调用图:

◆ ApplyBlendState()

void Engine.Graphics.DXWrapper.ApplyBlendState ( BlendState blendState)
static

在文件 DXWrapper.cs 第 365 行定义.

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

◆ ApplyDepthStencilState()

void Engine.Graphics.DXWrapper.ApplyDepthStencilState ( DepthStencilState depthStencilState)
static

在文件 DXWrapper.cs 第 347 行定义.

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

◆ ApplyIndexBuffer()

void Engine.Graphics.DXWrapper.ApplyIndexBuffer ( SharpDX.Direct3D11.Buffer indexBuffer,
Format format,
int indexOffset )
static

在文件 DXWrapper.cs 第 546 行定义.

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

◆ ApplyPrimitiveType()

void Engine.Graphics.DXWrapper.ApplyPrimitiveType ( PrimitiveType primitiveType)
static

在文件 DXWrapper.cs 第 555 行定义.

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

◆ ApplyPsSamplerState()

void Engine.Graphics.DXWrapper.ApplyPsSamplerState ( int slot,
SamplerState samplerState )
static

在文件 DXWrapper.cs 第 403 行定义.

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

◆ ApplyRasterizerState()

void Engine.Graphics.DXWrapper.ApplyRasterizerState ( RasterizerState rasterizerState)
static

在文件 DXWrapper.cs 第 315 行定义.

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

◆ ApplyShaderAndRenderTarget()

void Engine.Graphics.DXWrapper.ApplyShaderAndRenderTarget ( RenderTarget2D renderTarget,
Shader shader,
VertexDeclaration vertexDeclaration )
static

在文件 DXWrapper.cs 第 410 行定义.

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

◆ ApplyVertexBuffer()

void Engine.Graphics.DXWrapper.ApplyVertexBuffer ( SharpDX.Direct3D11.Buffer vertexBuffer,
int vertexStride,
int vertexOffset )
static

在文件 DXWrapper.cs 第 535 行定义.

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

◆ ApplyViewportScissor()

void Engine.Graphics.DXWrapper.ApplyViewportScissor ( Viewport viewport,
Rectangle scissorRectangle )
static

在文件 DXWrapper.cs 第 297 行定义.

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

◆ ApplyVsSamplerState()

void Engine.Graphics.DXWrapper.ApplyVsSamplerState ( int slot,
SamplerState samplerState )
static

在文件 DXWrapper.cs 第 396 行定义.

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

◆ CopyMemory()

unsafe void Engine.Graphics.DXWrapper.CopyMemory ( IntPtr source,
IntPtr destination,
int count )
static

在文件 DXWrapper.cs 第 763 行定义.

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

◆ CreateBufferViews()

void Engine.Graphics.DXWrapper.CreateBufferViews ( )
static

在文件 DXWrapper.cs 第 735 行定义.

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

◆ CreateDevice()

void Engine.Graphics.DXWrapper.CreateDevice ( )
static

在文件 DXWrapper.cs 第 62 行定义.

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

◆ DisposeBufferViews()

void Engine.Graphics.DXWrapper.DisposeBufferViews ( )
static

在文件 DXWrapper.cs 第 758 行定义.

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

◆ DisposeDevice()

void Engine.Graphics.DXWrapper.DisposeDevice ( )
static

在文件 DXWrapper.cs 第 131 行定义.

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

◆ GetDxSamplerState()

SharpDX.Direct3D11.SamplerState Engine.Graphics.DXWrapper.GetDxSamplerState ( SamplerState samplerState)
static

在文件 DXWrapper.cs 第 563 行定义.

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

◆ HandleDeviceLost()

void Engine.Graphics.DXWrapper.HandleDeviceLost ( )
static

在文件 DXWrapper.cs 第 782 行定义.

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

◆ Present()

void Engine.Graphics.DXWrapper.Present ( int presentationInterval)
static

在文件 DXWrapper.cs 第 197 行定义.

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

◆ ResizeSwapChainIfNeeded()

bool Engine.Graphics.DXWrapper.ResizeSwapChainIfNeeded ( )
static

在文件 DXWrapper.cs 第 182 行定义.

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

◆ TranslateBlend()

BlendOption Engine.Graphics.DXWrapper.TranslateBlend ( Blend blend)
static

在文件 DXWrapper.cs 第 678 行定义.

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

◆ TranslateBlendFunction()

BlendOperation Engine.Graphics.DXWrapper.TranslateBlendFunction ( BlendFunction blendFunction)
static

在文件 DXWrapper.cs 第 669 行定义.

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

◆ TranslateColorFormat()

Format Engine.Graphics.DXWrapper.TranslateColorFormat ( ColorFormat colorFormat)
static

在文件 DXWrapper.cs 第 646 行定义.

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

◆ TranslateCompareFunction()

Comparison Engine.Graphics.DXWrapper.TranslateCompareFunction ( CompareFunction compareFunction)
static

在文件 DXWrapper.cs 第 721 行定义.

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

◆ TranslateDepthFormat()

Format Engine.Graphics.DXWrapper.TranslateDepthFormat ( DepthFormat depthFormat)
static

在文件 DXWrapper.cs 第 659 行定义.

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

◆ TranslateIndexFormat()

Format Engine.Graphics.DXWrapper.TranslateIndexFormat ( IndexFormat indexFormat)
static

在文件 DXWrapper.cs 第 636 行定义.

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

◆ TranslateInputBindingDescription()

ShaderParameterType Engine.Graphics.DXWrapper.TranslateInputBindingDescription ( InputBindingDescription description)
static

在文件 DXWrapper.cs 第 608 行定义.

◆ TranslatePrimitiveType()

PrimitiveTopology Engine.Graphics.DXWrapper.TranslatePrimitiveType ( PrimitiveType primitiveType)
static

在文件 DXWrapper.cs 第 584 行定义.

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

◆ TranslateShaderTypeDescription()

ShaderParameterType Engine.Graphics.DXWrapper.TranslateShaderTypeDescription ( ShaderTypeDescription description)
static

在文件 DXWrapper.cs 第 594 行定义.

◆ TranslateTextureAddressMode()

SharpDX.Direct3D11.TextureAddressMode Engine.Graphics.DXWrapper.TranslateTextureAddressMode ( TextureAddressMode textureAddressMode)
static

在文件 DXWrapper.cs 第 697 行定义.

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

◆ TranslateTextureFilterMode()

Filter Engine.Graphics.DXWrapper.TranslateTextureFilterMode ( TextureFilterMode textureFilterMode)
static

在文件 DXWrapper.cs 第 706 行定义.

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

◆ TranslateVertexElementFormat()

Format Engine.Graphics.DXWrapper.TranslateVertexElementFormat ( VertexElementFormat vertexElementFormat)
static

在文件 DXWrapper.cs 第 620 行定义.

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

◆ Trim()

void Engine.Graphics.DXWrapper.Trim ( )
static

在文件 DXWrapper.cs 第 125 行定义.

类成员变量说明

◆ ColorBufferView

RenderTargetView Engine.Graphics.DXWrapper.ColorBufferView
static

在文件 DXWrapper.cs 第 18 行定义.

◆ Context

DeviceContext2 Engine.Graphics.DXWrapper.Context
static

在文件 DXWrapper.cs 第 16 行定义.

◆ DepthBufferView

DepthStencilView Engine.Graphics.DXWrapper.DepthBufferView
static

在文件 DXWrapper.cs 第 19 行定义.

◆ Device

Device2 Engine.Graphics.DXWrapper.Device
static

在文件 DXWrapper.cs 第 15 行定义.

◆ FeatureLevel

FeatureLevel Engine.Graphics.DXWrapper.FeatureLevel
static

在文件 DXWrapper.cs 第 20 行定义.

◆ m_blendState

BlendState Engine.Graphics.DXWrapper.m_blendState
static

在文件 DXWrapper.cs 第 41 行定义.

◆ m_dataPointers

IntPtr [] Engine.Graphics.DXWrapper.m_dataPointers
static

在文件 DXWrapper.cs 第 27 行定义.

◆ m_depthStencilState

DepthStencilState Engine.Graphics.DXWrapper.m_depthStencilState
static

在文件 DXWrapper.cs 第 40 行定义.

◆ m_depthStencilView

DepthStencilView Engine.Graphics.DXWrapper.m_depthStencilView
static

在文件 DXWrapper.cs 第 29 行定义.

◆ m_dxBlendStates

Dictionary<BlendState, SharpDX.Direct3D11.BlendState> Engine.Graphics.DXWrapper.m_dxBlendStates = new()
static

在文件 DXWrapper.cs 第 23 行定义.

◆ m_dxDepthStencilStates

Dictionary<DepthStencilState, SharpDX.Direct3D11.DepthStencilState> Engine.Graphics.DXWrapper.m_dxDepthStencilStates = new()
static

在文件 DXWrapper.cs 第 22 行定义.

◆ m_dxRasterizerStates

Dictionary<RasterizerState, SharpDX.Direct3D11.RasterizerState> Engine.Graphics.DXWrapper.m_dxRasterizerStates = new()
static

在文件 DXWrapper.cs 第 21 行定义.

◆ m_dxSamplerStates

Dictionary<SamplerState, SharpDX.Direct3D11.SamplerState> Engine.Graphics.DXWrapper.m_dxSamplerStates = new()
static

在文件 DXWrapper.cs 第 24 行定义.

◆ m_featureLevels

FeatureLevel [] Engine.Graphics.DXWrapper.m_featureLevels
static
初始值:
= [
FeatureLevel.Level_11_1,
FeatureLevel.Level_11_0,
FeatureLevel.Level_10_1,
FeatureLevel.Level_10_0,
FeatureLevel.Level_9_3,
FeatureLevel.Level_9_2,
FeatureLevel.Level_9_1
]
static FeatureLevel FeatureLevel

在文件 DXWrapper.cs 第 52 行定义.

◆ m_indexBuffer

SharpDX.Direct3D11.Buffer Engine.Graphics.DXWrapper.m_indexBuffer
static

在文件 DXWrapper.cs 第 37 行定义.

◆ m_indexOffset

int Engine.Graphics.DXWrapper.m_indexOffset
static

在文件 DXWrapper.cs 第 38 行定义.

◆ m_inputLayout

InputLayout Engine.Graphics.DXWrapper.m_inputLayout
static

在文件 DXWrapper.cs 第 32 行定义.

◆ m_pixelShader

PixelShader Engine.Graphics.DXWrapper.m_pixelShader
static

在文件 DXWrapper.cs 第 31 行定义.

◆ m_primitiveTopology

PrimitiveTopology Engine.Graphics.DXWrapper.m_primitiveTopology
static

在文件 DXWrapper.cs 第 33 行定义.

◆ m_psSamplerStates

SamplerState [] Engine.Graphics.DXWrapper.m_psSamplerStates = new SamplerState[16]
static

在文件 DXWrapper.cs 第 43 行定义.

◆ m_rasterizerState

RasterizerState Engine.Graphics.DXWrapper.m_rasterizerState
static

在文件 DXWrapper.cs 第 39 行定义.

◆ m_renderTargetView

RenderTargetView Engine.Graphics.DXWrapper.m_renderTargetView
static

在文件 DXWrapper.cs 第 28 行定义.

◆ m_scissorRectangle

? Rectangle Engine.Graphics.DXWrapper.m_scissorRectangle
static

在文件 DXWrapper.cs 第 26 行定义.

◆ m_userIndexBufferOffset

int Engine.Graphics.DXWrapper.m_userIndexBufferOffset
static

在文件 DXWrapper.cs 第 47 行定义.

◆ m_userIndexBufferSize

int Engine.Graphics.DXWrapper.m_userIndexBufferSize
static

在文件 DXWrapper.cs 第 49 行定义.

◆ m_userVertexBufferOffset

int Engine.Graphics.DXWrapper.m_userVertexBufferOffset
static

在文件 DXWrapper.cs 第 46 行定义.

◆ m_userVertexBufferSize

int Engine.Graphics.DXWrapper.m_userVertexBufferSize
static

在文件 DXWrapper.cs 第 48 行定义.

◆ m_vertexBuffer

SharpDX.Direct3D11.Buffer Engine.Graphics.DXWrapper.m_vertexBuffer
static

在文件 DXWrapper.cs 第 34 行定义.

◆ m_vertexOffset

int Engine.Graphics.DXWrapper.m_vertexOffset
static

在文件 DXWrapper.cs 第 36 行定义.

◆ m_vertexShader

VertexShader Engine.Graphics.DXWrapper.m_vertexShader
static

在文件 DXWrapper.cs 第 30 行定义.

◆ m_vertexStride

int Engine.Graphics.DXWrapper.m_vertexStride
static

在文件 DXWrapper.cs 第 35 行定义.

◆ m_viewport

? Viewport Engine.Graphics.DXWrapper.m_viewport
static

在文件 DXWrapper.cs 第 25 行定义.

◆ m_vsSamplerStates

SamplerState [] Engine.Graphics.DXWrapper.m_vsSamplerStates = new SamplerState[16]
static

在文件 DXWrapper.cs 第 42 行定义.

◆ REQ_TEXTURE2D_U_OR_V_DIMENSION

int Engine.Graphics.DXWrapper.REQ_TEXTURE2D_U_OR_V_DIMENSION
static

在文件 DXWrapper.cs 第 50 行定义.

◆ SwapChain

SwapChain2 Engine.Graphics.DXWrapper.SwapChain
static

在文件 DXWrapper.cs 第 17 行定义.

◆ UserIndexBuffer

SharpDX.Direct3D11.Buffer Engine.Graphics.DXWrapper.UserIndexBuffer
static

在文件 DXWrapper.cs 第 45 行定义.

◆ UserVertexBuffer

SharpDX.Direct3D11.Buffer Engine.Graphics.DXWrapper.UserVertexBuffer
static

在文件 DXWrapper.cs 第 44 行定义.


该类的文档由以下文件生成:
  • E:/sc/doxygen/SurvivalcraftApi 1.8.2.3/Engine/Engine.Graphics/DXWrapper.cs