OGRE  1.12.12
Object-Oriented Graphics Rendering Engine
Ogre::D3D11Mappings Class Reference

#include <OgreD3D11Mappings.h>

Static Public Member Functions

static UINT _getAccessFlags (HardwareBuffer::Usage usage)
 
static UINT _getAccessFlags (TextureUsage usage)
 
static PixelFormat _getClosestSupportedPF (PixelFormat ogrePF)
 utility method, find closest Ogre pixel format that D3D11 can support More...
 
static DXGI_FORMAT _getGammaFormat (DXGI_FORMAT format, bool appendSRGB)
 utility method, optionally maps plain format to _SRGB counterparts More...
 
static PixelFormat _getPF (DXGI_FORMAT d3dPF)
 utility method, convert D3D11 pixel format to Ogre pixel format More...
 
static DXGI_FORMAT _getPF (PixelFormat ogrePF)
 utility method, convert Ogre pixel format to D3D11 pixel format More...
 
static UINT _getTextureBindFlags (DXGI_FORMAT format, TextureUsage usage)
 
static UINT _getTextureMiscFlags (UINT bindflags, TextureType textype, TextureUsage usage)
 
static TextureType _getTexType (D3D11_SRV_DIMENSION type)
 
static D3D11_USAGE _getUsage (HardwareBuffer::Usage usage)
 
static D3D11_USAGE _getUsage (TextureUsage usage)
 
static bool _isBinaryCompressedFormat (DXGI_FORMAT d3dPF)
 
static bool _isDynamic (HardwareBuffer::Usage usage)
 
static bool _isDynamic (TextureUsage usage)
 
static D3D11_TEXTURE_ADDRESS_MODE get (TextureAddressingMode tam)
 return a D3D11 equivalent for a Ogre TextureAddressingMode value More...
 
static D3D11_BLEND get (SceneBlendFactor sbf, bool forAlpha)
 return a D3D11 equivalent for a Ogre SceneBlendFactor value More...
 
static D3D11_BLEND_OP get (SceneBlendOperation sbo)
 return a D3D11 equivalent for a Ogre SceneBlendOperation value More...
 
static D3D11_COMPARISON_FUNC get (CompareFunction cf)
 return a D3D11 equivalent for a Ogre CompareFunction value More...
 
static D3D11_CULL_MODE get (CullingMode cm, bool flip=false)
 return a D3D11 equivalent for a Ogre CillingMode value More...
 
static D3D11_FILL_MODE get (PolygonMode level)
 return a D3D11 equivalent for a Ogre PolygonMode value More...
 
static D3D11_STENCIL_OP get (StencilOperation op, bool invert=false)
 return a D3D11 equivalent for a Ogre StencilOperation value More...
 
static D3D11_FILTER get (const FilterOptions minification, const FilterOptions magnification, const FilterOptions mips, const bool comparison=false)
 return a D3D11 state type for Ogre FilterOption min/mag/mip values More...
 
static D3D11_MAP get (HardwareBuffer::LockOptions options, HardwareBuffer::Usage usage)
 Get lock options. More...
 
static DXGI_FORMAT get (VertexElementType vType)
 Get vertex data type. More...
 
static LPCSTR get (VertexElementSemantic sem)
 Get vertex semantic. More...
 
static VertexElementSemantic get (LPCSTR sem)
 
static void get (const ColourValue &inColour, float *outColour)
 Get dx11 color. More...
 
static DXGI_FORMAT getFormat (HardwareIndexBuffer::IndexType itype)
 Get index type. More...
 
static PixelBox getPixelBoxWithMapping (D3D11_BOX extents, DXGI_FORMAT pixelFormat, const D3D11_MAPPED_SUBRESOURCE &mapping)
 utility method, generates Ogre PixelBox using usual parameters and dataPtr/rowPitch/slicePitch from D3D11_MAPPED_SUBRESOURCE More...
 
static void setPixelBoxMapping (PixelBox &box, const D3D11_MAPPED_SUBRESOURCE &mapping)
 utility method, applies dataPtr/rowPitch/slicePitch from D3D11_MAPPED_SUBRESOURCE to Ogre PixelBox More...
 

Member Function Documentation

static D3D11_TEXTURE_ADDRESS_MODE Ogre::D3D11Mappings::get ( TextureAddressingMode  tam)
static

return a D3D11 equivalent for a Ogre TextureAddressingMode value

static D3D11_BLEND Ogre::D3D11Mappings::get ( SceneBlendFactor  sbf,
bool  forAlpha 
)
static

return a D3D11 equivalent for a Ogre SceneBlendFactor value

static D3D11_BLEND_OP Ogre::D3D11Mappings::get ( SceneBlendOperation  sbo)
static

return a D3D11 equivalent for a Ogre SceneBlendOperation value

static D3D11_COMPARISON_FUNC Ogre::D3D11Mappings::get ( CompareFunction  cf)
static

return a D3D11 equivalent for a Ogre CompareFunction value

static D3D11_CULL_MODE Ogre::D3D11Mappings::get ( CullingMode  cm,
bool  flip = false 
)
static

return a D3D11 equivalent for a Ogre CillingMode value

static D3D11_FILL_MODE Ogre::D3D11Mappings::get ( PolygonMode  level)
static

return a D3D11 equivalent for a Ogre PolygonMode value

static D3D11_STENCIL_OP Ogre::D3D11Mappings::get ( StencilOperation  op,
bool  invert = false 
)
static

return a D3D11 equivalent for a Ogre StencilOperation value

static D3D11_FILTER Ogre::D3D11Mappings::get ( const FilterOptions  minification,
const FilterOptions  magnification,
const FilterOptions  mips,
const bool  comparison = false 
)
static

return a D3D11 state type for Ogre FilterOption min/mag/mip values

static D3D11_MAP Ogre::D3D11Mappings::get ( HardwareBuffer::LockOptions  options,
HardwareBuffer::Usage  usage 
)
static

Get lock options.

static DXGI_FORMAT Ogre::D3D11Mappings::getFormat ( HardwareIndexBuffer::IndexType  itype)
static

Get index type.

static DXGI_FORMAT Ogre::D3D11Mappings::get ( VertexElementType  vType)
static

Get vertex data type.

static LPCSTR Ogre::D3D11Mappings::get ( VertexElementSemantic  sem)
static

Get vertex semantic.

static VertexElementSemantic Ogre::D3D11Mappings::get ( LPCSTR  sem)
static
static void Ogre::D3D11Mappings::get ( const ColourValue inColour,
float *  outColour 
)
static

Get dx11 color.

static PixelBox Ogre::D3D11Mappings::getPixelBoxWithMapping ( D3D11_BOX  extents,
DXGI_FORMAT  pixelFormat,
const D3D11_MAPPED_SUBRESOURCE &  mapping 
)
static

utility method, generates Ogre PixelBox using usual parameters and dataPtr/rowPitch/slicePitch from D3D11_MAPPED_SUBRESOURCE

static void Ogre::D3D11Mappings::setPixelBoxMapping ( PixelBox box,
const D3D11_MAPPED_SUBRESOURCE &  mapping 
)
static

utility method, applies dataPtr/rowPitch/slicePitch from D3D11_MAPPED_SUBRESOURCE to Ogre PixelBox

static PixelFormat Ogre::D3D11Mappings::_getPF ( DXGI_FORMAT  d3dPF)
static

utility method, convert D3D11 pixel format to Ogre pixel format

static DXGI_FORMAT Ogre::D3D11Mappings::_getPF ( PixelFormat  ogrePF)
static

utility method, convert Ogre pixel format to D3D11 pixel format

static DXGI_FORMAT Ogre::D3D11Mappings::_getGammaFormat ( DXGI_FORMAT  format,
bool  appendSRGB 
)
static

utility method, optionally maps plain format to _SRGB counterparts

Referenced by Ogre::D3D11RenderWindowBase::_shouldRebindBackBuffer(), and Ogre::D3D11RenderWindowSwapChainBased::setVSyncInterval().

static bool Ogre::D3D11Mappings::_isBinaryCompressedFormat ( DXGI_FORMAT  d3dPF)
static
static D3D11_USAGE Ogre::D3D11Mappings::_getUsage ( HardwareBuffer::Usage  usage)
static
static D3D11_USAGE Ogre::D3D11Mappings::_getUsage ( TextureUsage  usage)
inlinestatic

References _getUsage().

Referenced by _getUsage().

static UINT Ogre::D3D11Mappings::_getAccessFlags ( HardwareBuffer::Usage  usage)
static
static UINT Ogre::D3D11Mappings::_getAccessFlags ( TextureUsage  usage)
inlinestatic

References _getAccessFlags().

Referenced by _getAccessFlags().

static bool Ogre::D3D11Mappings::_isDynamic ( HardwareBuffer::Usage  usage)
static
static bool Ogre::D3D11Mappings::_isDynamic ( TextureUsage  usage)
inlinestatic

References _isDynamic().

Referenced by _isDynamic().

static PixelFormat Ogre::D3D11Mappings::_getClosestSupportedPF ( PixelFormat  ogrePF)
static

utility method, find closest Ogre pixel format that D3D11 can support

static TextureType Ogre::D3D11Mappings::_getTexType ( D3D11_SRV_DIMENSION  type)
static
static UINT Ogre::D3D11Mappings::_getTextureBindFlags ( DXGI_FORMAT  format,
TextureUsage  usage 
)
static
static UINT Ogre::D3D11Mappings::_getTextureMiscFlags ( UINT  bindflags,
TextureType  textype,
TextureUsage  usage 
)
static

The documentation for this class was generated from the following file: