webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Classes | Typedefs | Enumerations | Functions
rx::d3d11 Namespace Reference

Classes

struct  DXGIFormatSize
 
struct  DXGISupport
 
struct  Format
 
class  LazyBlendState
 
class  LazyInputLayout
 
class  LazyResource
 
class  LazyShader
 
struct  PositionDepthColorVertex
 
struct  PositionLayerTexCoord3DVertex
 
struct  PositionTexCoordVertex
 
struct  VertexFormat
 

Typedefs

typedef std::map< gl::VertexFormatType, VertexFormatD3D11VertexFormatInfoMap
 
typedef std::pair< gl::VertexFormatType, VertexFormatD3D11VertexFormatPair
 
using FormatSupportFunction = bool(*)(const Renderer11DeviceCaps &)
 

Enumerations

enum  ANGLED3D11DeviceType { ANGLE_D3D11_DEVICE_TYPE_UNKNOWN, ANGLE_D3D11_DEVICE_TYPE_HARDWARE, ANGLE_D3D11_DEVICE_TYPE_SOFTWARE_REF_OR_NULL, ANGLE_D3D11_DEVICE_TYPE_WARP }
 
enum  ReservedConstantBufferSlot { RESERVED_CONSTANT_BUFFER_SLOT_DEFAULT_UNIFORM_BLOCK = 0, RESERVED_CONSTANT_BUFFER_SLOT_DRIVER = 1, RESERVED_CONSTANT_BUFFER_SLOT_COUNT = 2 }
 

Functions

GLenum GetComponentType (DXGI_FORMAT dxgiFormat)
 
const DXGISupportGetDXGISupport (DXGI_FORMAT dxgiFormat, D3D_FEATURE_LEVEL featureLevel)
 
bool SupportsMipGen (DXGI_FORMAT dxgiFormat, D3D_FEATURE_LEVEL featureLevel)
 
const DXGIFormatSizeGetDXGIFormatSizeInfo (DXGI_FORMAT format)
 
const VertexFormatGetVertexFormatInfo (gl::VertexFormatType vertexFormatType, D3D_FEATURE_LEVEL featureLevel)
 
ANGLED3D11DeviceType GetDeviceType (ID3D11Device *device)
 
void MakeValidSize (bool isImage, DXGI_FORMAT format, GLsizei *requestWidth, GLsizei *requestHeight, int *levelOffset)
 
void GenerateInitialTextureData (GLint internalFormat, const Renderer11DeviceCaps &renderer11DeviceCaps, GLuint width, GLuint height, GLuint depth, GLuint mipLevels, std::vector< D3D11_SUBRESOURCE_DATA > *outSubresourceData, std::vector< std::vector< BYTE >> *outData)
 
UINT GetPrimitiveRestartIndex ()
 
void SetPositionTexCoordVertex (PositionTexCoordVertex *vertex, float x, float y, float u, float v)
 
void SetPositionLayerTexCoord3DVertex (PositionLayerTexCoord3DVertex *vertex, float x, float y, unsigned int layer, float u, float v, float s)
 
HRESULT SetDebugName (ID3D11DeviceChild *resource, const char *name)
 
WorkaroundsD3D GenerateWorkarounds (const Renderer11DeviceCaps &deviceCaps, const DXGI_ADAPTER_DESC &adapterDesc)
 
void InitConstantBufferDesc (D3D11_BUFFER_DESC *constantBufferDescription, size_t byteWidth)
 
template<typename T >
void SetPositionDepthColorVertex (PositionDepthColorVertex< T > *vertex, float x, float y, float z, const gl::Color< T > &color)
 
template<typename outType >
outType * DynamicCastComObject (IUnknown *object)
 
bool isDeviceLostError (HRESULT errorCode)
 
ID3D11VertexShader * CompileVS (ID3D11Device *device, const BYTE *byteCode, size_t N, const char *name)
 
template<unsigned int N>
ID3D11VertexShader * CompileVS (ID3D11Device *device, const BYTE(&byteCode)[N], const char *name)
 
ID3D11GeometryShader * CompileGS (ID3D11Device *device, const BYTE *byteCode, size_t N, const char *name)
 
template<unsigned int N>
ID3D11GeometryShader * CompileGS (ID3D11Device *device, const BYTE(&byteCode)[N], const char *name)
 
ID3D11PixelShader * CompilePS (ID3D11Device *device, const BYTE *byteCode, size_t N, const char *name)
 
template<unsigned int N>
ID3D11PixelShader * CompilePS (ID3D11Device *device, const BYTE(&byteCode)[N], const char *name)
 
template<class T >
void SetBufferData (ID3D11DeviceContext *context, ID3D11Buffer *constantBuffer, const T &value)
 
bool OnlyFL10Plus (const Renderer11DeviceCaps &deviceCaps)
 
bool OnlyFL9_3 (const Renderer11DeviceCaps &deviceCaps)
 
bool SupportsFormat (DXGI_FORMAT format, const Renderer11DeviceCaps &deviceCaps)
 

Typedef Documentation

◆ D3D11VertexFormatInfoMap

◆ D3D11VertexFormatPair

◆ FormatSupportFunction

Enumeration Type Documentation

◆ ANGLED3D11DeviceType

Enumerator
ANGLE_D3D11_DEVICE_TYPE_UNKNOWN 
ANGLE_D3D11_DEVICE_TYPE_HARDWARE 
ANGLE_D3D11_DEVICE_TYPE_SOFTWARE_REF_OR_NULL 
ANGLE_D3D11_DEVICE_TYPE_WARP 

◆ ReservedConstantBufferSlot

Enumerator
RESERVED_CONSTANT_BUFFER_SLOT_DEFAULT_UNIFORM_BLOCK 
RESERVED_CONSTANT_BUFFER_SLOT_DRIVER 
RESERVED_CONSTANT_BUFFER_SLOT_COUNT 

Function Documentation

◆ CompileGS() [1/2]

ID3D11GeometryShader* rx::d3d11::CompileGS ( ID3D11Device *  device,
const BYTE *  byteCode,
size_t  N,
const char *  name 
)
inline

◆ CompileGS() [2/2]

template<unsigned int N>
ID3D11GeometryShader* rx::d3d11::CompileGS ( ID3D11Device *  device,
const BYTE(&)  byteCode[N],
const char *  name 
)

◆ CompilePS() [1/2]

ID3D11PixelShader* rx::d3d11::CompilePS ( ID3D11Device *  device,
const BYTE *  byteCode,
size_t  N,
const char *  name 
)
inline

◆ CompilePS() [2/2]

template<unsigned int N>
ID3D11PixelShader* rx::d3d11::CompilePS ( ID3D11Device *  device,
const BYTE(&)  byteCode[N],
const char *  name 
)

◆ CompileVS() [1/2]

ID3D11VertexShader* rx::d3d11::CompileVS ( ID3D11Device *  device,
const BYTE *  byteCode,
size_t  N,
const char *  name 
)
inline

◆ CompileVS() [2/2]

template<unsigned int N>
ID3D11VertexShader* rx::d3d11::CompileVS ( ID3D11Device *  device,
const BYTE(&)  byteCode[N],
const char *  name 
)

◆ DynamicCastComObject()

template<typename outType >
outType* rx::d3d11::DynamicCastComObject ( IUnknown *  object)

◆ GenerateInitialTextureData()

void rx::d3d11::GenerateInitialTextureData ( GLint  internalFormat,
const Renderer11DeviceCaps renderer11DeviceCaps,
GLuint  width,
GLuint  height,
GLuint  depth,
GLuint  mipLevels,
std::vector< D3D11_SUBRESOURCE_DATA > *  outSubresourceData,
std::vector< std::vector< BYTE >> *  outData 
)

◆ GenerateWorkarounds()

WorkaroundsD3D rx::d3d11::GenerateWorkarounds ( const Renderer11DeviceCaps deviceCaps,
const DXGI_ADAPTER_DESC &  adapterDesc 
)

◆ GetComponentType()

GLenum rx::d3d11::GetComponentType ( DXGI_FORMAT  dxgiFormat)

◆ GetDeviceType()

ANGLED3D11DeviceType rx::d3d11::GetDeviceType ( ID3D11Device *  device)

◆ GetDXGIFormatSizeInfo()

const DXGIFormatSize & rx::d3d11::GetDXGIFormatSizeInfo ( DXGI_FORMAT  format)

◆ GetDXGISupport()

const DXGISupport & rx::d3d11::GetDXGISupport ( DXGI_FORMAT  dxgiFormat,
D3D_FEATURE_LEVEL  featureLevel 
)

◆ GetPrimitiveRestartIndex()

UINT rx::d3d11::GetPrimitiveRestartIndex ( )

◆ GetVertexFormatInfo()

const VertexFormat & rx::d3d11::GetVertexFormatInfo ( gl::VertexFormatType  vertexFormatType,
D3D_FEATURE_LEVEL  featureLevel 
)

◆ InitConstantBufferDesc()

void rx::d3d11::InitConstantBufferDesc ( D3D11_BUFFER_DESC *  constantBufferDescription,
size_t  byteWidth 
)

◆ isDeviceLostError()

bool rx::d3d11::isDeviceLostError ( HRESULT  errorCode)
inline

◆ MakeValidSize()

void rx::d3d11::MakeValidSize ( bool  isImage,
DXGI_FORMAT  format,
GLsizei requestWidth,
GLsizei requestHeight,
int *  levelOffset 
)

◆ OnlyFL10Plus()

bool rx::d3d11::OnlyFL10Plus ( const Renderer11DeviceCaps deviceCaps)
inline

◆ OnlyFL9_3()

bool rx::d3d11::OnlyFL9_3 ( const Renderer11DeviceCaps deviceCaps)
inline

◆ SetBufferData()

template<class T >
void rx::d3d11::SetBufferData ( ID3D11DeviceContext *  context,
ID3D11Buffer *  constantBuffer,
const T value 
)

◆ SetDebugName()

HRESULT rx::d3d11::SetDebugName ( ID3D11DeviceChild *  resource,
const char *  name 
)

◆ SetPositionDepthColorVertex()

template<typename T >
void rx::d3d11::SetPositionDepthColorVertex ( PositionDepthColorVertex< T > *  vertex,
float  x,
float  y,
float  z,
const gl::Color< T > &  color 
)

◆ SetPositionLayerTexCoord3DVertex()

void rx::d3d11::SetPositionLayerTexCoord3DVertex ( PositionLayerTexCoord3DVertex vertex,
float  x,
float  y,
unsigned int  layer,
float  u,
float  v,
float  s 
)

◆ SetPositionTexCoordVertex()

void rx::d3d11::SetPositionTexCoordVertex ( PositionTexCoordVertex vertex,
float  x,
float  y,
float  u,
float  v 
)

◆ SupportsFormat()

bool rx::d3d11::SupportsFormat ( DXGI_FORMAT  format,
const Renderer11DeviceCaps deviceCaps 
)
inline

◆ SupportsMipGen()

bool rx::d3d11::SupportsMipGen ( DXGI_FORMAT  dxgiFormat,
D3D_FEATURE_LEVEL  featureLevel 
)