Sleeping Wombat GUI  0.100
swGUI
Enumerations | Functions
GraphicAPIConstants.h File Reference
#include "swCommonLib/Common/TypesDefinitions.h"

Go to the source code of this file.

Enumerations

enum  BlendOperation : uint8 {
  BlendOperation::Add = 0, BlendOperation::Subtract = 1, BlendOperation::ReverseSubtract = 2, BlendOperation::Min = 3,
  BlendOperation::Max = 4
}
 Blending operation. More...
 
enum  BlendFactor : uint8 {
  BlendFactor::Zero = 0, BlendFactor::One = 1, BlendFactor::SrcColor, BlendFactor::DstColor,
  BlendFactor::SrcAlpha, BlendFactor::DstAlpha, BlendFactor::BlendFactor, BlendFactor::InverseSrcColor,
  BlendFactor::InverseDstColor, BlendFactor::InverseSrcAlpha, BlendFactor::InverseDstAlpha, BlendFactor::InverseBlendFactor
}
 Blend factor for blending equation. More...
 
enum  CullMode : uint8 { CullMode::Front = 0, CullMode::Back = 1, CullMode::None = 2 }
 Polygon culling mode. More...
 
enum  FillMode : uint8 { FillMode::Solid = 0, FillMode::Wireframe = 1 }
 Polygon fill mode. More...
 
enum  ResourceUsage : uint8 { ResourceUsage::RESOURCE_USAGE_DEFAULT = 0, ResourceUsage::RESOURCE_USAGE_DYNAMIC = 1, ResourceUsage::RESOURCE_USAGE_STATIC = 2, ResourceUsage::RESOURCE_USAGE_STAGING = 3 }
 Specyfikuje typ dostępu do pamięci danego zasobu. More...
 
enum  PrimitiveTopology : uint8 {
  PrimitiveTopology::PRIMITIVE_TOPOLOGY_POINTLIST = 0, PrimitiveTopology::PRIMITIVE_TOPOLOGY_LINELIST = 1, PrimitiveTopology::PRIMITIVE_TOPOLOGY_LINESTRIP = 2, PrimitiveTopology::PRIMITIVE_TOPOLOGY_TRIANGLELIST = 3,
  PrimitiveTopology::PRIMITIVE_TOPOLOGY_TRIANGLESTRIP = 4, PrimitiveTopology::PRIMITIVE_TOPOLOGY_LINELIST_ADJ = 5, PrimitiveTopology::PRIMITIVE_TOPOLOGY_LINESTRIP_ADJ = 6, PrimitiveTopology::PRIMITIVE_TOPOLOGY_TRIANGLELIST_ADJ = 7,
  PrimitiveTopology::PRIMITIVE_TOPOLOGY_TRIANGLESTRIP_ADJ = 8
}
 Topologia wierzchołków. More...
 
enum  ResourceBinding : uint8 {
  BIND_RESOURCE_VERTEX_BUFFER = 0x0L, BIND_RESOURCE_INDEX_BUFFER = 0x1L, BIND_RESOURCE_CONSTANT_BUFFER = 0x2L, BIND_RESOURCE_SHADER_RESOURCE = 0x3L,
  BIND_RESOURCE_STREAM_OUTPUT = 0x4L, BIND_RESOURCE_RENDER_TARGET = 0x5L, BIND_RESOURCE_DEPTH_STENCIL = 0x6L, BIND_RESOURCE_UNORDERED_ACCESS = 0x7L,
  BIND_RESOURCE_DECODER = 0x8L, BIND_RESOURCE_VIDEO_ENCODER = 0x9L
}
 Określa jak będzie używany dany zasób w potoku karty graficznej. More...
 
enum  TextureType : uint8 {
  TextureType::TEXTURE_TYPE_UNKNOW = 0, TextureType::TEXTURE_TYPE_BUFFER = 1, TextureType::TEXTURE_TYPE_TEXTURE1D = 2, TextureType::TEXTURE_TYPE_TEXTURE1D_ARRAY = 3,
  TextureType::TEXTURE_TYPE_TEXTURE2D = 4, TextureType::TEXTURE_TYPE_TEXTURE2D_ARRAY = 5, TextureType::TEXTURE_TYPE_TEXTURE2D_MULTISAMPLE = 6, TextureType::TEXTURE_TYPE_TEXTURE2D_MULTISAMPLE_ARRAY = 7,
  TextureType::TEXTURE_TYPE_TEXTURE3D = 8
}
 Definiuje typ tekstury. More...
 
enum  DepthStencilFormat : uint8 { DepthStencilFormat::DEPTH_STENCIL_FORMAT_D32_FLOAT_S8X24_UINT = 0, DepthStencilFormat::DEPTH_STENCIL_FORMAT_D32_FLOAT = 1, DepthStencilFormat::DEPTH_STENCIL_FORMAT_D24_UNORM_S8_UINT = 2, DepthStencilFormat::DEPTH_STENCIL_FORMAT_D16_UNORM = 3 }
 Typy dostępne dla bufora głębokości. More...
 
enum  ResourceFormat : uint8 {
  ResourceFormat::RESOURCE_FORMAT_UNKNOWN = 0, ResourceFormat::RESOURCE_FORMAT_R32G32B32A32_TYPELESS = 1, ResourceFormat::RESOURCE_FORMAT_R32G32B32A32_FLOAT = 2, ResourceFormat::RESOURCE_FORMAT_R32G32B32A32_UINT = 3,
  ResourceFormat::RESOURCE_FORMAT_R32G32B32A32_SINT = 4, ResourceFormat::RESOURCE_FORMAT_R32G32B32_TYPELESS = 5, ResourceFormat::RESOURCE_FORMAT_R32G32B32_FLOAT = 6, ResourceFormat::RESOURCE_FORMAT_R32G32B32_UINT = 7,
  ResourceFormat::RESOURCE_FORMAT_R32G32B32_SINT = 8, ResourceFormat::RESOURCE_FORMAT_R16G16B16A16_TYPELESS = 9, ResourceFormat::RESOURCE_FORMAT_R16G16B16A16_FLOAT = 10, ResourceFormat::RESOURCE_FORMAT_R16G16B16A16_UNORM = 11,
  ResourceFormat::RESOURCE_FORMAT_R16G16B16A16_UINT = 12, ResourceFormat::RESOURCE_FORMAT_R16G16B16A16_SNORM = 13, ResourceFormat::RESOURCE_FORMAT_R16G16B16A16_SINT = 14, ResourceFormat::RESOURCE_FORMAT_R32G32_TYPELESS = 15,
  ResourceFormat::RESOURCE_FORMAT_R32G32_FLOAT = 16, ResourceFormat::RESOURCE_FORMAT_R32G32_UINT = 17, ResourceFormat::RESOURCE_FORMAT_R32G32_SINT = 18, ResourceFormat::RESOURCE_FORMAT_R32G8X24_TYPELESS = 19,
  ResourceFormat::RESOURCE_FORMAT_D32_FLOAT_S8X24_UINT = 20, ResourceFormat::RESOURCE_FORMAT_R32_FLOAT_X8X24_TYPELESS = 21, ResourceFormat::RESOURCE_FORMAT_X32_TYPELESS_G8X24_UINT = 22, ResourceFormat::RESOURCE_FORMAT_R10G10B10A2_TYPELESS = 23,
  ResourceFormat::RESOURCE_FORMAT_R10G10B10A2_UNORM = 24, ResourceFormat::RESOURCE_FORMAT_R10G10B10A2_UINT = 25, ResourceFormat::RESOURCE_FORMAT_R11G11B10_FLOAT = 26, ResourceFormat::RESOURCE_FORMAT_R8G8B8A8_TYPELESS = 27,
  ResourceFormat::RESOURCE_FORMAT_R8G8B8A8_UNORM = 28, ResourceFormat::RESOURCE_FORMAT_R8G8B8A8_UNORM_SRGB = 29, ResourceFormat::RESOURCE_FORMAT_R8G8B8A8_UINT = 30, ResourceFormat::RESOURCE_FORMAT_R8G8B8A8_SNORM = 31,
  ResourceFormat::RESOURCE_FORMAT_R8G8B8A8_SINT = 32, ResourceFormat::RESOURCE_FORMAT_R16G16_TYPELESS = 33, ResourceFormat::RESOURCE_FORMAT_R16G16_FLOAT = 34, ResourceFormat::RESOURCE_FORMAT_R16G16_UNORM = 35,
  ResourceFormat::RESOURCE_FORMAT_R16G16_UINT = 36, ResourceFormat::RESOURCE_FORMAT_R16G16_SNORM = 37, ResourceFormat::RESOURCE_FORMAT_R16G16_SINT = 38, ResourceFormat::RESOURCE_FORMAT_R32_TYPELESS = 39,
  ResourceFormat::RESOURCE_FORMAT_D32_FLOAT = 40, ResourceFormat::RESOURCE_FORMAT_R32_FLOAT = 41, ResourceFormat::RESOURCE_FORMAT_R32_UINT = 42, ResourceFormat::RESOURCE_FORMAT_R32_SINT = 43,
  ResourceFormat::RESOURCE_FORMAT_R24G8_TYPELESS = 44, ResourceFormat::RESOURCE_FORMAT_D24_UNORM_S8_UINT = 45, ResourceFormat::RESOURCE_FORMAT_R24_UNORM_X8_TYPELESS = 46, ResourceFormat::RESOURCE_FORMAT_X24_TYPELESS_G8_UINT = 47,
  ResourceFormat::RESOURCE_FORMAT_R8G8_TYPELESS = 48, ResourceFormat::RESOURCE_FORMAT_R8G8_UNORM = 49, ResourceFormat::RESOURCE_FORMAT_R8G8_UINT = 50, ResourceFormat::RESOURCE_FORMAT_R8G8_SNORM = 51,
  ResourceFormat::RESOURCE_FORMAT_R8G8_SINT = 52, ResourceFormat::RESOURCE_FORMAT_R16_TYPELESS = 53, ResourceFormat::RESOURCE_FORMAT_R16_FLOAT = 54, ResourceFormat::RESOURCE_FORMAT_D16_UNORM = 55,
  ResourceFormat::RESOURCE_FORMAT_R16_UNORM = 56, ResourceFormat::RESOURCE_FORMAT_R16_UINT = 57, ResourceFormat::RESOURCE_FORMAT_R16_SNORM = 58, ResourceFormat::RESOURCE_FORMAT_R16_SINT = 59,
  ResourceFormat::RESOURCE_FORMAT_R8_TYPELESS = 60, ResourceFormat::RESOURCE_FORMAT_R8_UNORM = 61, ResourceFormat::RESOURCE_FORMAT_R8_UINT = 62, ResourceFormat::RESOURCE_FORMAT_R8_SNORM = 63,
  ResourceFormat::RESOURCE_FORMAT_R8_SINT = 64, ResourceFormat::RESOURCE_FORMAT_A8_UNORM = 65, ResourceFormat::RESOURCE_FORMAT_R1_UNORM = 66, ResourceFormat::RESOURCE_FORMAT_R9G9B9E5_SHAREDEXP = 67,
  ResourceFormat::RESOURCE_FORMAT_R8G8_B8G8_UNORM = 68, ResourceFormat::RESOURCE_FORMAT_G8R8_G8B8_UNORM = 69, ResourceFormat::RESOURCE_FORMAT_BC1_TYPELESS = 70, ResourceFormat::RESOURCE_FORMAT_BC1_UNORM = 71,
  ResourceFormat::RESOURCE_FORMAT_BC1_UNORM_SRGB = 72, ResourceFormat::RESOURCE_FORMAT_BC2_TYPELESS = 73, ResourceFormat::RESOURCE_FORMAT_BC2_UNORM = 74, ResourceFormat::RESOURCE_FORMAT_BC2_UNORM_SRGB = 75,
  ResourceFormat::RESOURCE_FORMAT_BC3_TYPELESS = 76, ResourceFormat::RESOURCE_FORMAT_BC3_UNORM = 77, ResourceFormat::RESOURCE_FORMAT_BC3_UNORM_SRGB = 78, ResourceFormat::RESOURCE_FORMAT_BC4_TYPELESS = 79,
  ResourceFormat::RESOURCE_FORMAT_BC4_UNORM = 80, ResourceFormat::RESOURCE_FORMAT_BC4_SNORM = 81, ResourceFormat::RESOURCE_FORMAT_BC5_TYPELESS = 82, ResourceFormat::RESOURCE_FORMAT_BC5_UNORM = 83,
  ResourceFormat::RESOURCE_FORMAT_BC5_SNORM = 84, ResourceFormat::RESOURCE_FORMAT_B5G6R5_UNORM = 85, ResourceFormat::RESOURCE_FORMAT_B5G5R5A1_UNORM = 86, ResourceFormat::RESOURCE_FORMAT_B8G8R8A8_UNORM = 87,
  ResourceFormat::RESOURCE_FORMAT_B8G8R8X8_UNORM = 88, ResourceFormat::RESOURCE_FORMAT_R10G10B10_XR_BIAS_A2_UNORM = 89, ResourceFormat::RESOURCE_FORMAT_B8G8R8A8_TYPELESS = 90, ResourceFormat::RESOURCE_FORMAT_B8G8R8A8_UNORM_SRGB = 91,
  ResourceFormat::RESOURCE_FORMAT_B8G8R8X8_TYPELESS = 92, ResourceFormat::RESOURCE_FORMAT_B8G8R8X8_UNORM_SRGB = 93, ResourceFormat::RESOURCE_FORMAT_BC6H_TYPELESS = 94, ResourceFormat::RESOURCE_FORMAT_BC6H_UF16 = 95,
  ResourceFormat::RESOURCE_FORMAT_BC6H_SF16 = 96, ResourceFormat::RESOURCE_FORMAT_BC7_TYPELESS = 97, ResourceFormat::RESOURCE_FORMAT_BC7_UNORM = 98, ResourceFormat::RESOURCE_FORMAT_BC7_UNORM_SRGB = 99,
  ResourceFormat::RESOURCE_FORMAT_AYUV = 100, ResourceFormat::RESOURCE_FORMAT_Y410 = 101, ResourceFormat::RESOURCE_FORMAT_Y416 = 102, ResourceFormat::RESOURCE_FORMAT_NV12 = 103,
  ResourceFormat::RESOURCE_FORMAT_P010 = 104, ResourceFormat::RESOURCE_FORMAT_P016 = 105, ResourceFormat::RESOURCE_FORMAT_420_OPAQUE = 106, ResourceFormat::RESOURCE_FORMAT_YUY2 = 107,
  ResourceFormat::RESOURCE_FORMAT_Y210 = 108, ResourceFormat::RESOURCE_FORMAT_Y216 = 109, ResourceFormat::RESOURCE_FORMAT_NV11 = 110, ResourceFormat::RESOURCE_FORMAT_AI44 = 111,
  ResourceFormat::RESOURCE_FORMAT_IA44 = 112, ResourceFormat::RESOURCE_FORMAT_P8 = 113, ResourceFormat::RESOURCE_FORMAT_A8P8 = 114, ResourceFormat::RESOURCE_FORMAT_B4G4R4A4_UNORM = 115,
  ResourceFormat::RESOURCE_FORMAT_P208 = 130, ResourceFormat::RESOURCE_FORMAT_V208 = 131, ResourceFormat::RESOURCE_FORMAT_V408 = 132
}
 Specyfikuje format tekstury bądź innego zasobu. More...
 

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...
 

Detailed Description

Author
nieznanysprawiciel

Enumeration Type Documentation

enum DepthStencilFormat : uint8
strong

Typy dostępne dla bufora głębokości.

Attention
Don't change constants order.
See also
GraphicAPI
Enumerator
DEPTH_STENCIL_FORMAT_D32_FLOAT_S8X24_UINT 
DEPTH_STENCIL_FORMAT_D32_FLOAT 
DEPTH_STENCIL_FORMAT_D24_UNORM_S8_UINT 
DEPTH_STENCIL_FORMAT_D16_UNORM 
enum PrimitiveTopology : uint8
strong

Topologia wierzchołków.

Attention
Don't change constants order.
See also
GraphicAPI
Enumerator
PRIMITIVE_TOPOLOGY_POINTLIST 
PRIMITIVE_TOPOLOGY_LINELIST 
PRIMITIVE_TOPOLOGY_LINESTRIP 
PRIMITIVE_TOPOLOGY_TRIANGLELIST 
PRIMITIVE_TOPOLOGY_TRIANGLESTRIP 
PRIMITIVE_TOPOLOGY_LINELIST_ADJ 
PRIMITIVE_TOPOLOGY_LINESTRIP_ADJ 
PRIMITIVE_TOPOLOGY_TRIANGLELIST_ADJ 
PRIMITIVE_TOPOLOGY_TRIANGLESTRIP_ADJ 

Określa jak będzie używany dany zasób w potoku karty graficznej.

Attention
DirectX pozwala na łączenie tych stałych jak flag, ale w silniku można wybrać tylko jedną opcję.
Don't change constants order.
See also
GraphicAPI
Enumerator
BIND_RESOURCE_VERTEX_BUFFER 
BIND_RESOURCE_INDEX_BUFFER 
BIND_RESOURCE_CONSTANT_BUFFER 
BIND_RESOURCE_SHADER_RESOURCE 
BIND_RESOURCE_STREAM_OUTPUT 
BIND_RESOURCE_RENDER_TARGET 
BIND_RESOURCE_DEPTH_STENCIL 
BIND_RESOURCE_UNORDERED_ACCESS 
BIND_RESOURCE_DECODER 
BIND_RESOURCE_VIDEO_ENCODER 
enum ResourceFormat : uint8
strong

Specyfikuje format tekstury bądź innego zasobu.

Attention
Don't change constants order.
See also
GraphicAPI
Enumerator
RESOURCE_FORMAT_UNKNOWN 
RESOURCE_FORMAT_R32G32B32A32_TYPELESS 
RESOURCE_FORMAT_R32G32B32A32_FLOAT 
RESOURCE_FORMAT_R32G32B32A32_UINT 
RESOURCE_FORMAT_R32G32B32A32_SINT 
RESOURCE_FORMAT_R32G32B32_TYPELESS 
RESOURCE_FORMAT_R32G32B32_FLOAT 
RESOURCE_FORMAT_R32G32B32_UINT 
RESOURCE_FORMAT_R32G32B32_SINT 
RESOURCE_FORMAT_R16G16B16A16_TYPELESS 
RESOURCE_FORMAT_R16G16B16A16_FLOAT 
RESOURCE_FORMAT_R16G16B16A16_UNORM 
RESOURCE_FORMAT_R16G16B16A16_UINT 
RESOURCE_FORMAT_R16G16B16A16_SNORM 
RESOURCE_FORMAT_R16G16B16A16_SINT 
RESOURCE_FORMAT_R32G32_TYPELESS 
RESOURCE_FORMAT_R32G32_FLOAT 
RESOURCE_FORMAT_R32G32_UINT 
RESOURCE_FORMAT_R32G32_SINT 
RESOURCE_FORMAT_R32G8X24_TYPELESS 
RESOURCE_FORMAT_D32_FLOAT_S8X24_UINT 
RESOURCE_FORMAT_R32_FLOAT_X8X24_TYPELESS 
RESOURCE_FORMAT_X32_TYPELESS_G8X24_UINT 
RESOURCE_FORMAT_R10G10B10A2_TYPELESS 
RESOURCE_FORMAT_R10G10B10A2_UNORM 
RESOURCE_FORMAT_R10G10B10A2_UINT 
RESOURCE_FORMAT_R11G11B10_FLOAT 
RESOURCE_FORMAT_R8G8B8A8_TYPELESS 
RESOURCE_FORMAT_R8G8B8A8_UNORM 
RESOURCE_FORMAT_R8G8B8A8_UNORM_SRGB 
RESOURCE_FORMAT_R8G8B8A8_UINT 
RESOURCE_FORMAT_R8G8B8A8_SNORM 
RESOURCE_FORMAT_R8G8B8A8_SINT 
RESOURCE_FORMAT_R16G16_TYPELESS 
RESOURCE_FORMAT_R16G16_FLOAT 
RESOURCE_FORMAT_R16G16_UNORM 
RESOURCE_FORMAT_R16G16_UINT 
RESOURCE_FORMAT_R16G16_SNORM 
RESOURCE_FORMAT_R16G16_SINT 
RESOURCE_FORMAT_R32_TYPELESS 
RESOURCE_FORMAT_D32_FLOAT 
RESOURCE_FORMAT_R32_FLOAT 
RESOURCE_FORMAT_R32_UINT 
RESOURCE_FORMAT_R32_SINT 
RESOURCE_FORMAT_R24G8_TYPELESS 
RESOURCE_FORMAT_D24_UNORM_S8_UINT 
RESOURCE_FORMAT_R24_UNORM_X8_TYPELESS 
RESOURCE_FORMAT_X24_TYPELESS_G8_UINT 
RESOURCE_FORMAT_R8G8_TYPELESS 
RESOURCE_FORMAT_R8G8_UNORM 
RESOURCE_FORMAT_R8G8_UINT 
RESOURCE_FORMAT_R8G8_SNORM 
RESOURCE_FORMAT_R8G8_SINT 
RESOURCE_FORMAT_R16_TYPELESS 
RESOURCE_FORMAT_R16_FLOAT 
RESOURCE_FORMAT_D16_UNORM 
RESOURCE_FORMAT_R16_UNORM 
RESOURCE_FORMAT_R16_UINT 
RESOURCE_FORMAT_R16_SNORM 
RESOURCE_FORMAT_R16_SINT 
RESOURCE_FORMAT_R8_TYPELESS 
RESOURCE_FORMAT_R8_UNORM 
RESOURCE_FORMAT_R8_UINT 
RESOURCE_FORMAT_R8_SNORM 
RESOURCE_FORMAT_R8_SINT 
RESOURCE_FORMAT_A8_UNORM 
RESOURCE_FORMAT_R1_UNORM 
RESOURCE_FORMAT_R9G9B9E5_SHAREDEXP 
RESOURCE_FORMAT_R8G8_B8G8_UNORM 
RESOURCE_FORMAT_G8R8_G8B8_UNORM 
RESOURCE_FORMAT_BC1_TYPELESS 
RESOURCE_FORMAT_BC1_UNORM 
RESOURCE_FORMAT_BC1_UNORM_SRGB 
RESOURCE_FORMAT_BC2_TYPELESS 
RESOURCE_FORMAT_BC2_UNORM 
RESOURCE_FORMAT_BC2_UNORM_SRGB 
RESOURCE_FORMAT_BC3_TYPELESS 
RESOURCE_FORMAT_BC3_UNORM 
RESOURCE_FORMAT_BC3_UNORM_SRGB 
RESOURCE_FORMAT_BC4_TYPELESS 
RESOURCE_FORMAT_BC4_UNORM 
RESOURCE_FORMAT_BC4_SNORM 
RESOURCE_FORMAT_BC5_TYPELESS 
RESOURCE_FORMAT_BC5_UNORM 
RESOURCE_FORMAT_BC5_SNORM 
RESOURCE_FORMAT_B5G6R5_UNORM 
RESOURCE_FORMAT_B5G5R5A1_UNORM 
RESOURCE_FORMAT_B8G8R8A8_UNORM 
RESOURCE_FORMAT_B8G8R8X8_UNORM 
RESOURCE_FORMAT_R10G10B10_XR_BIAS_A2_UNORM 
RESOURCE_FORMAT_B8G8R8A8_TYPELESS 
RESOURCE_FORMAT_B8G8R8A8_UNORM_SRGB 
RESOURCE_FORMAT_B8G8R8X8_TYPELESS 
RESOURCE_FORMAT_B8G8R8X8_UNORM_SRGB 
RESOURCE_FORMAT_BC6H_TYPELESS 
RESOURCE_FORMAT_BC6H_UF16 
RESOURCE_FORMAT_BC6H_SF16 
RESOURCE_FORMAT_BC7_TYPELESS 
RESOURCE_FORMAT_BC7_UNORM 
RESOURCE_FORMAT_BC7_UNORM_SRGB 
RESOURCE_FORMAT_AYUV 
RESOURCE_FORMAT_Y410 
RESOURCE_FORMAT_Y416 
RESOURCE_FORMAT_NV12 
RESOURCE_FORMAT_P010 
RESOURCE_FORMAT_P016 
RESOURCE_FORMAT_420_OPAQUE 
RESOURCE_FORMAT_YUY2 
RESOURCE_FORMAT_Y210 
RESOURCE_FORMAT_Y216 
RESOURCE_FORMAT_NV11 
RESOURCE_FORMAT_AI44 
RESOURCE_FORMAT_IA44 
RESOURCE_FORMAT_P8 
RESOURCE_FORMAT_A8P8 
RESOURCE_FORMAT_B4G4R4A4_UNORM 
RESOURCE_FORMAT_P208 
RESOURCE_FORMAT_V208 
RESOURCE_FORMAT_V408 
enum ResourceUsage : uint8
strong

Specyfikuje typ dostępu do pamięci danego zasobu.

Attention
Don't change constants order.
See also
GraphicAPI
Enumerator
RESOURCE_USAGE_DEFAULT 

Pozawala GPU na zapis i odczyt.

RESOURCE_USAGE_DYNAMIC 

Pozwala GPU na odczyt, a CPU na zapis. Dobre do często updatowanych zasobów.

RESOURCE_USAGE_STATIC 

Zasób raz stworzony i nigdy nie jest zmieniany.

RESOURCE_USAGE_STAGING 

GPU może jedynie kopiować, poza tym wszystkie prawa dostępu są po stronie CPU. Zobacz D3D11_USAGE_STAGING.

enum TextureType : uint8
strong

Definiuje typ tekstury.

Attention
Don't change constants order.
See also
GraphicAPI
Enumerator
TEXTURE_TYPE_UNKNOW 
TEXTURE_TYPE_BUFFER 
TEXTURE_TYPE_TEXTURE1D 
TEXTURE_TYPE_TEXTURE1D_ARRAY 
TEXTURE_TYPE_TEXTURE2D 
TEXTURE_TYPE_TEXTURE2D_ARRAY 
TEXTURE_TYPE_TEXTURE2D_MULTISAMPLE 
TEXTURE_TYPE_TEXTURE2D_MULTISAMPLE_ARRAY 
TEXTURE_TYPE_TEXTURE3D 

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.