Diligent Engine  v.2.4.g
Classes | Namespaces | Macros | Functions
GraphicsUtilities.cpp File Reference
#include <algorithm>
#include <cmath>
#include "GraphicsUtilities.h"
#include "DebugUtilities.hpp"
#include "GraphicsAccessories.hpp"
#include "ColorConversion.h"

Classes

struct  Diligent::ComputeCoarseMipHelper
 

Namespaces

 Diligent
 The library uses Direct3D-style math:
 

Macros

#define PI_F   3.1415926f
 

Functions

void Diligent::CreateUniformBuffer (IRenderDevice *pDevice, Uint32 Size, const Char *Name, IBuffer **ppBuffer, USAGE Usage=USAGE_DYNAMIC, BIND_FLAGS BindFlags=BIND_UNIFORM_BUFFER, CPU_ACCESS_FLAGS CPUAccessFlags=CPU_ACCESS_WRITE, void *pInitialData=nullptr)
 
template<class TConverter >
void Diligent::GenerateCheckerBoardPatternInternal (Uint32 Width, Uint32 Height, TEXTURE_FORMAT Fmt, Uint32 HorzCells, Uint32 VertCells, Uint8 *pData, Uint32 StrideInBytes, TConverter Converter)
 
void Diligent::GenerateCheckerBoardPattern (Uint32 Width, Uint32 Height, TEXTURE_FORMAT Fmt, Uint32 HorzCells, Uint32 VertCells, Uint8 *pData, Uint32 StrideInBytes)
 
template<typename ChannelType >
ChannelType Diligent::SRGBAverage (ChannelType c0, ChannelType c1, ChannelType c2, ChannelType c3)
 
template<typename ChannelType >
ChannelType Diligent::LinearAverage (ChannelType c0, ChannelType c1, ChannelType c2, ChannelType c3)
 
template<>
Uint8 Diligent::LinearAverage< Uint8 > (Uint8 c0, Uint8 c1, Uint8 c2, Uint8 c3)
 
template<>
Uint16 Diligent::LinearAverage< Uint16 > (Uint16 c0, Uint16 c1, Uint16 c2, Uint16 c3)
 
template<>
Uint32 Diligent::LinearAverage< Uint32 > (Uint32 c0, Uint32 c1, Uint32 c2, Uint32 c3)
 
template<>
Int8 Diligent::LinearAverage< Int8 > (Int8 c0, Int8 c1, Int8 c2, Int8 c3)
 
template<>
Int16 Diligent::LinearAverage< Int16 > (Int16 c0, Int16 c1, Int16 c2, Int16 c3)
 
template<>
Int32 Diligent::LinearAverage< Int32 > (Int32 c0, Int32 c1, Int32 c2, Int32 c3)
 
template<>
float Diligent::LinearAverage< float > (float c0, float c1, float c2, float c3)
 
void Diligent::ComputeMipLevel (Uint32 FineLevelWidth, Uint32 FineLevelHeight, TEXTURE_FORMAT Fmt, const void *pFineLevelData, Uint32 FineDataStrideInBytes, void *pCoarseLevelData, Uint32 CoarseDataStrideInBytes)
 
void Diligent_CreateUniformBuffer (Diligent::IRenderDevice *pDevice, Diligent::Uint32 Size, const Diligent::Char *Name, Diligent::IBuffer **ppBuffer, Diligent::USAGE Usage, Diligent::BIND_FLAGS BindFlags, Diligent::CPU_ACCESS_FLAGS CPUAccessFlags, void *pInitialData)
 
void Diligent_GenerateCheckerBoardPattern (Diligent::Uint32 Width, Diligent::Uint32 Height, Diligent::TEXTURE_FORMAT Fmt, Diligent::Uint32 HorzCells, Diligent::Uint32 VertCells, Diligent::Uint8 *pData, Diligent::Uint32 StrideInBytes)
 
void Diligent_ComputeMipLevel (Diligent::Uint32 FineLevelWidth, Diligent::Uint32 FineLevelHeight, Diligent::TEXTURE_FORMAT Fmt, const void *pFineLevelData, Diligent::Uint32 FineDataStrideInBytes, void *pCoarseLevelData, Diligent::Uint32 CoarseDataStrideInBytes)
 

Macro Definition Documentation

◆ PI_F

#define PI_F   3.1415926f

Function Documentation

◆ Diligent_ComputeMipLevel()

void Diligent_ComputeMipLevel ( Diligent::Uint32  FineLevelWidth,
Diligent::Uint32  FineLevelHeight,
Diligent::TEXTURE_FORMAT  Fmt,
const void *  pFineLevelData,
Diligent::Uint32  FineDataStrideInBytes,
void *  pCoarseLevelData,
Diligent::Uint32  CoarseDataStrideInBytes 
)

◆ Diligent_CreateUniformBuffer()

void Diligent_CreateUniformBuffer ( Diligent::IRenderDevice pDevice,
Diligent::Uint32  Size,
const Diligent::Char Name,
Diligent::IBuffer **  ppBuffer,
Diligent::USAGE  Usage,
Diligent::BIND_FLAGS  BindFlags,
Diligent::CPU_ACCESS_FLAGS  CPUAccessFlags,
void *  pInitialData 
)

◆ Diligent_GenerateCheckerBoardPattern()

void Diligent_GenerateCheckerBoardPattern ( Diligent::Uint32  Width,
Diligent::Uint32  Height,
Diligent::TEXTURE_FORMAT  Fmt,
Diligent::Uint32  HorzCells,
Diligent::Uint32  VertCells,
Diligent::Uint8 pData,
Diligent::Uint32  StrideInBytes 
)