Sleeping Wombat GUI  0.100
swGUI
Functions | Variables
DX11ConstantsMapper.cpp File Reference
#include "swGraphicAPI/DX11API/stdafx.h"
#include "DX11ConstantsMapper.h"
#include "swCommonLib/Common/MemoryLeaks.h"

Functions

uint32 BitsPerPixel (ResourceFormat fmt)
 Liczba bitów na piksel danego formatu. Funkcja wymaga zaimplementrowania przez API graficzne. More...
 
uint32 BytesPerPixel (ResourceFormat fmt)
 Liczba bajtów na piksel danego formatu. Funkcja wymaga zaimplementrowania przez API graficzne. More...
 

Variables

D3D11_USAGE DX11ResourceUsage []
 
D3D_PRIMITIVE_TOPOLOGY DX11PrimitiveTopology []
 
D3D11_RTV_DIMENSION DX11TextureType [9]
 
D3D11_DSV_DIMENSION DX11TextureTypeToDSV [9]
 
D3D11_SRV_DIMENSION DX11TextureTypeToSRV [9]
 
D3D11_BIND_FLAG DX11ResourceBinding [10]
 
DXGI_FORMAT DX11DepthStencilFormat [4]
 
DXGI_FORMAT DX11DepthStencilTypeless [4]
 
DXGI_FORMAT DX11DepthOnly [4]
 
DXGI_FORMAT DX11StencilOnly [4]
 
D3D11_FILL_MODE DX11FillMode [2]
 
D3D11_CULL_MODE DX11CullMode [3]
 
D3D11_BLEND DX11BlendFactor [12]
 
D3D11_BLEND_OP DX11BlendOperation [5]
 
DXGI_FORMAT DX11ResourceFormat []
 

Detailed Description

Author
nieznanysprawiciel

Function Documentation

uint32 BitsPerPixel ( ResourceFormat  fmt)

Liczba bitów na piksel danego formatu. Funkcja wymaga zaimplementrowania przez API graficzne.

uint32 BytesPerPixel ( ResourceFormat  fmt)

Liczba bajtów na piksel danego formatu. Funkcja wymaga zaimplementrowania przez API graficzne.

Variable Documentation

D3D11_BLEND DX11BlendFactor[12]
Initial value:
{
D3D11_BLEND_ZERO,
D3D11_BLEND_ONE,
D3D11_BLEND_SRC_COLOR,
D3D11_BLEND_DEST_COLOR,
D3D11_BLEND_SRC_ALPHA,
D3D11_BLEND_DEST_ALPHA,
D3D11_BLEND_BLEND_FACTOR,
D3D11_BLEND_INV_SRC_COLOR,
D3D11_BLEND_INV_DEST_COLOR,
D3D11_BLEND_INV_SRC_ALPHA,
D3D11_BLEND_INV_DEST_ALPHA,
D3D11_BLEND_INV_BLEND_FACTOR
}
D3D11_BLEND_OP DX11BlendOperation[5]
Initial value:
{
D3D11_BLEND_OP_ADD,
D3D11_BLEND_OP_SUBTRACT,
D3D11_BLEND_OP_REV_SUBTRACT,
D3D11_BLEND_OP_MIN,
D3D11_BLEND_OP_MAX
}
D3D11_CULL_MODE DX11CullMode[3]
Initial value:
{
D3D11_CULL_FRONT,
D3D11_CULL_BACK,
D3D11_CULL_NONE
}
DXGI_FORMAT DX11DepthOnly[4]
Initial value:
{
DXGI_FORMAT_R32_FLOAT_X8X24_TYPELESS,
DXGI_FORMAT_R32_FLOAT,
DXGI_FORMAT_R24_UNORM_X8_TYPELESS,
DXGI_FORMAT_R16_UNORM
}
DXGI_FORMAT DX11DepthStencilFormat[4]
Initial value:
{
DXGI_FORMAT_D32_FLOAT_S8X24_UINT,
DXGI_FORMAT_D32_FLOAT,
DXGI_FORMAT_D24_UNORM_S8_UINT,
DXGI_FORMAT_D16_UNORM
}
See also
DepthStencilFormat.
DXGI_FORMAT DX11DepthStencilTypeless[4]
Initial value:
{
DXGI_FORMAT_R32G8X24_TYPELESS,
DXGI_FORMAT_R32_TYPELESS,
DXGI_FORMAT_R24G8_TYPELESS,
DXGI_FORMAT_R16_TYPELESS
}
D3D11_FILL_MODE DX11FillMode[2]
Initial value:
{
D3D11_FILL_SOLID,
D3D11_FILL_WIREFRAME
}
D3D_PRIMITIVE_TOPOLOGY DX11PrimitiveTopology[]
Initial value:
{
D3D_PRIMITIVE_TOPOLOGY_POINTLIST,
D3D_PRIMITIVE_TOPOLOGY_LINELIST,
D3D_PRIMITIVE_TOPOLOGY_LINESTRIP,
D3D_PRIMITIVE_TOPOLOGY_TRIANGLELIST,
D3D_PRIMITIVE_TOPOLOGY_TRIANGLESTRIP,
D3D_PRIMITIVE_TOPOLOGY_LINELIST_ADJ,
D3D_PRIMITIVE_TOPOLOGY_LINESTRIP_ADJ,
D3D_PRIMITIVE_TOPOLOGY_TRIANGLELIST_ADJ,
D3D_PRIMITIVE_TOPOLOGY_TRIANGLESTRIP_ADJ
}
See also
PrimitiveTopology.
D3D11_BIND_FLAG DX11ResourceBinding[10]
Initial value:
{
D3D11_BIND_VERTEX_BUFFER,
D3D11_BIND_INDEX_BUFFER,
D3D11_BIND_CONSTANT_BUFFER,
D3D11_BIND_SHADER_RESOURCE,
D3D11_BIND_STREAM_OUTPUT,
D3D11_BIND_RENDER_TARGET,
D3D11_BIND_DEPTH_STENCIL,
D3D11_BIND_UNORDERED_ACCESS,
D3D11_BIND_UNORDERED_ACCESS,
D3D11_BIND_UNORDERED_ACCESS
}
See also
ResourceBinding.
DXGI_FORMAT DX11ResourceFormat[]
See also
ResourceFormat.
D3D11_USAGE DX11ResourceUsage[]
Initial value:
=
{
D3D11_USAGE::D3D11_USAGE_DEFAULT,
D3D11_USAGE::D3D11_USAGE_DYNAMIC,
D3D11_USAGE::D3D11_USAGE_IMMUTABLE,
D3D11_USAGE::D3D11_USAGE_STAGING
}
See also
ResourceUsage.
DXGI_FORMAT DX11StencilOnly[4]
Initial value:
{
DXGI_FORMAT_X32_TYPELESS_G8X24_UINT,
DXGI_FORMAT_UNKNOWN,
DXGI_FORMAT_X24_TYPELESS_G8_UINT,
DXGI_FORMAT_UNKNOWN
}
D3D11_RTV_DIMENSION DX11TextureType[9]
Initial value:
{
D3D11_RTV_DIMENSION::D3D11_RTV_DIMENSION_UNKNOWN,
D3D11_RTV_DIMENSION::D3D11_RTV_DIMENSION_BUFFER,
D3D11_RTV_DIMENSION::D3D11_RTV_DIMENSION_TEXTURE1D,
D3D11_RTV_DIMENSION::D3D11_RTV_DIMENSION_TEXTURE1DARRAY,
D3D11_RTV_DIMENSION::D3D11_RTV_DIMENSION_TEXTURE2D,
D3D11_RTV_DIMENSION::D3D11_RTV_DIMENSION_TEXTURE2DARRAY,
D3D11_RTV_DIMENSION::D3D11_RTV_DIMENSION_TEXTURE2DMS,
D3D11_RTV_DIMENSION::D3D11_RTV_DIMENSION_TEXTURE2DMSARRAY,
D3D11_RTV_DIMENSION::D3D11_RTV_DIMENSION_TEXTURE3D,
}
See also
TextureType
D3D11_DSV_DIMENSION DX11TextureTypeToDSV[9]
Initial value:
{
D3D11_DSV_DIMENSION::D3D11_DSV_DIMENSION_UNKNOWN,
D3D11_DSV_DIMENSION::D3D11_DSV_DIMENSION_UNKNOWN,
D3D11_DSV_DIMENSION::D3D11_DSV_DIMENSION_TEXTURE1D,
D3D11_DSV_DIMENSION::D3D11_DSV_DIMENSION_TEXTURE1DARRAY,
D3D11_DSV_DIMENSION::D3D11_DSV_DIMENSION_TEXTURE2D,
D3D11_DSV_DIMENSION::D3D11_DSV_DIMENSION_TEXTURE2DARRAY,
D3D11_DSV_DIMENSION::D3D11_DSV_DIMENSION_TEXTURE2DMS,
D3D11_DSV_DIMENSION::D3D11_DSV_DIMENSION_TEXTURE2DMSARRAY,
D3D11_DSV_DIMENSION::D3D11_DSV_DIMENSION_UNKNOWN,
}
D3D11_SRV_DIMENSION DX11TextureTypeToSRV[9]
Initial value:
{
D3D11_SRV_DIMENSION::D3D11_SRV_DIMENSION_UNKNOWN,
D3D11_SRV_DIMENSION::D3D11_SRV_DIMENSION_BUFFER,
D3D11_SRV_DIMENSION::D3D11_SRV_DIMENSION_TEXTURE1D,
D3D11_SRV_DIMENSION::D3D11_SRV_DIMENSION_TEXTURE1DARRAY,
D3D11_SRV_DIMENSION::D3D11_SRV_DIMENSION_TEXTURE2D,
D3D11_SRV_DIMENSION::D3D11_SRV_DIMENSION_TEXTURE2DARRAY,
D3D11_SRV_DIMENSION::D3D11_SRV_DIMENSION_TEXTURE2DMS,
D3D11_SRV_DIMENSION::D3D11_SRV_DIMENSION_TEXTURE2DMSARRAY,
D3D11_SRV_DIMENSION::D3D11_SRV_DIMENSION_TEXTURE3D,
}