Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
BC4BC5.cpp File Reference
#include "directxtexp.h"
#include "BC.h"

Go to the source code of this file.

Classes

struct  DirectX::BC4_UNORM
 
struct  DirectX::BC4_SNORM
 

Namespaces

 DirectX
 

Macros

#define BLOCK_LEN   4
 
#define BLOCK_SIZE   (BLOCK_LEN * BLOCK_LEN)
 

Functions

static void DirectX::FloatToSNorm (_In_ float fVal, _Out_ int8_t *piSNorm)
 
static void DirectX::FindEndPointsBC4U (_In_reads_(BLOCK_SIZE) const float theTexelsU[], _Out_ uint8_t &endpointU_0, _Out_ uint8_t &endpointU_1)
 
static void DirectX::FindEndPointsBC4S (_In_reads_(BLOCK_SIZE) const float theTexelsU[], _Out_ int8_t &endpointU_0, _Out_ int8_t &endpointU_1)
 
static void DirectX::FindEndPointsBC5U (_In_reads_(BLOCK_SIZE) const float theTexelsU[], _In_reads_(BLOCK_SIZE) const float theTexelsV[], _Out_ uint8_t &endpointU_0, _Out_ uint8_t &endpointU_1, _Out_ uint8_t &endpointV_0, _Out_ uint8_t &endpointV_1)
 
static void DirectX::FindEndPointsBC5S (_In_reads_(BLOCK_SIZE) const float theTexelsU[], _In_reads_(BLOCK_SIZE) const float theTexelsV[], _Out_ int8_t &endpointU_0, _Out_ int8_t &endpointU_1, _Out_ int8_t &endpointV_0, _Out_ int8_t &endpointV_1)
 
static void DirectX::FindClosestUNORM (_Inout_ BC4_UNORM *pBC, _In_reads_(NUM_PIXELS_PER_BLOCK) const float theTexelsU[])
 
static void DirectX::FindClosestSNORM (_Inout_ BC4_SNORM *pBC, _In_reads_(NUM_PIXELS_PER_BLOCK) const float theTexelsU[])
 
_Use_decl_annotations_ void DirectX::D3DXDecodeBC4U (XMVECTOR *pColor, const uint8_t *pBC)
 
_Use_decl_annotations_ void DirectX::D3DXDecodeBC4S (XMVECTOR *pColor, const uint8_t *pBC)
 
_Use_decl_annotations_ void DirectX::D3DXEncodeBC4U (uint8_t *pBC, const XMVECTOR *pColor, DWORD flags)
 
_Use_decl_annotations_ void DirectX::D3DXEncodeBC4S (uint8_t *pBC, const XMVECTOR *pColor, DWORD flags)
 
_Use_decl_annotations_ void DirectX::D3DXDecodeBC5U (XMVECTOR *pColor, const uint8_t *pBC)
 
_Use_decl_annotations_ void DirectX::D3DXDecodeBC5S (XMVECTOR *pColor, const uint8_t *pBC)
 
_Use_decl_annotations_ void DirectX::D3DXEncodeBC5U (uint8_t *pBC, const XMVECTOR *pColor, DWORD flags)
 
_Use_decl_annotations_ void DirectX::D3DXEncodeBC5S (uint8_t *pBC, const XMVECTOR *pColor, DWORD flags)
 

Macro Definition Documentation

#define BLOCK_LEN   4

Definition at line 28 of file BC4BC5.cpp.

#define BLOCK_SIZE   (BLOCK_LEN * BLOCK_LEN)

Definition at line 31 of file BC4BC5.cpp.

Referenced by DirectX::FindEndPointsBC4S(), and DirectX::FindEndPointsBC4U().