Public Types | Static Public Member Functions
Ogre::D3D11Mappings Class Reference

#include <OgreD3D11Mappings.h>

List of all members.

Public Types

enum  eD3DFilterUsage { D3D_FUSAGE_MIN, D3D_FUSAGE_MAG, D3D_FUSAGE_MIP }
 enum identifying D3D11 filter usage type More...

Static Public Member Functions

static UINT _getAccessFlags (HardwareBuffer::Usage mUsage)
static UINT _getAccessFlags (int mUsage)
static PixelFormat _getClosestSupportedPF (PixelFormat ogrePF)
 utility method, find closest Ogre pixel format that D3D11 can support
static PixelFormat _getPF (DXGI_FORMAT d3dPF)
 utility method, convert D3D11 pixel format to Ogre pixel format
static DXGI_FORMAT _getPF (PixelFormat ogrePF)
 utility method, convert Ogre pixel format to D3D11 pixel format
static size_t _getSizeInBytes (PixelFormat pf, size_t xcount=1, size_t ycount=1)
static UINT _getTextureBindFlags (DXGI_FORMAT format, bool isdynamic)
static UINT _getTextureMiscFlags (UINT bindflags, TextureType textype, bool isdynamic)
static TextureType _getTexType (D3D11_SRV_DIMENSION type)
static D3D11_USAGE _getUsage (HardwareBuffer::Usage mUsage)
static D3D11_USAGE _getUsage (int mUsage)
static bool _isDynamic (HardwareBuffer::Usage mUsage)
static bool _isDynamic (int mUsage)
static D3D11_TEXTURE_ADDRESS_MODE get (TextureUnitState::TextureAddressingMode tam)
 return a D3D11 equivalent for a Ogre ShadeOptions value
static D3D11_BLEND get (LayerBlendType lbt)
 return a D3D11 equivalent for a Ogre LayerBlendType value
static D3D11_BLEND get (SceneBlendFactor sbf, bool forAlpha)
 return a D3D11 equivalent for a Ogre LayerBlendOperationEx value
static D3D11_BLEND_OP get (SceneBlendOperation sbo)
 return a D3D11 equivalent for a Ogre SceneBlendOperation value
static D3D11_COMPARISON_FUNC get (CompareFunction cf)
 return a D3D11 equivalent for a Ogre CompareFunction value
static D3D11_CULL_MODE get (CullingMode cm, bool flip=false)
 return a D3D11 equivalent for a Ogre CillingMode value
static D3D11_FILL_MODE get (PolygonMode level)
 return a D3D11 equivalent for a Ogre FogMode value
static D3D11_STENCIL_OP get (StencilOperation op, bool invert=false)
 return a D3D11 equivalent for a Ogre StencilOperation value
static DWORD get (FilterType ft)
 return a D3D11 state type for Ogre FilterType value
static D3D11_FILTER get (const FilterOptions minification, const FilterOptions magnification, const FilterOptions mips, const bool comparison=false)
static DWORD get (HardwareBuffer::Usage usage)
 return the combination of D3DUSAGE values for Ogre buffer usage
static D3D11_MAP get (HardwareBuffer::LockOptions options, HardwareBuffer::Usage usage)
 Get lock options.
static DXGI_FORMAT get (HardwareIndexBuffer::IndexType itype)
 Get index type.
static DXGI_FORMAT get (VertexElementType vType)
 Get vertex data type.
static LPCSTR get (VertexElementSemantic sem)
 Get vertex semantic.
static VertexElementSemantic get (LPCSTR sem)
static void get (const ColourValue &inColour, float *outColour)
 Get dx11 color.
static UINT getByteWidth (HardwareIndexBuffer::IndexType itype)
static DXGI_FORMAT getFormat (HardwareIndexBuffer::IndexType itype)

Detailed Description

Definition at line 39 of file OgreD3D11Mappings.h.


Member Enumeration Documentation

enum identifying D3D11 filter usage type

Enumerator:
D3D_FUSAGE_MIN 

min filter

D3D_FUSAGE_MAG 

mag filter

D3D_FUSAGE_MIP 

mip filter

Definition at line 44 of file OgreD3D11Mappings.h.


Member Function Documentation

static UINT Ogre::D3D11Mappings::_getAccessFlags ( int  mUsage) [static]

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

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 size_t Ogre::D3D11Mappings::_getSizeInBytes ( PixelFormat  pf,
size_t  xcount = 1,
size_t  ycount = 1 
) [static]
static UINT Ogre::D3D11Mappings::_getTextureBindFlags ( DXGI_FORMAT  format,
bool  isdynamic 
) [static]
static UINT Ogre::D3D11Mappings::_getTextureMiscFlags ( UINT  bindflags,
TextureType  textype,
bool  isdynamic 
) [static]
static TextureType Ogre::D3D11Mappings::_getTexType ( D3D11_SRV_DIMENSION  type) [static]
static D3D11_USAGE Ogre::D3D11Mappings::_getUsage ( HardwareBuffer::Usage  mUsage) [static]
static D3D11_USAGE Ogre::D3D11Mappings::_getUsage ( int  mUsage) [static]
static bool Ogre::D3D11Mappings::_isDynamic ( HardwareBuffer::Usage  mUsage) [static]
static bool Ogre::D3D11Mappings::_isDynamic ( int  mUsage) [static]
static D3D11_TEXTURE_ADDRESS_MODE Ogre::D3D11Mappings::get ( TextureUnitState::TextureAddressingMode  tam) [static]

return a D3D11 equivalent for a Ogre ShadeOptions value

return a D3D11 equivalent for a Ogre LightTypes value return a D3D11 equivalent for a Ogre TexCoordCalsMethod value return a D3D11 equivalent for a Ogre TextureAddressingMode value

static D3D11_BLEND Ogre::D3D11Mappings::get ( LayerBlendType  lbt) [static]

return a D3D11 equivalent for a Ogre LayerBlendType value

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

return a D3D11 equivalent for a Ogre LayerBlendOperationEx value

return a D3D11 equivalent for a Ogre LayerBlendSource value 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 FogMode value

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 DWORD Ogre::D3D11Mappings::get ( FilterType  ft) [static]

return a D3D11 state type for Ogre FilterType value

static D3D11_FILTER Ogre::D3D11Mappings::get ( const FilterOptions  minification,
const FilterOptions  magnification,
const FilterOptions  mips,
const bool  comparison = false 
) [static]
static DWORD Ogre::D3D11Mappings::get ( HardwareBuffer::Usage  usage) [static]

return the combination of D3DUSAGE values for Ogre buffer usage

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

Get lock options.

static DXGI_FORMAT Ogre::D3D11Mappings::get ( 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 DXGI_FORMAT Ogre::D3D11Mappings::getFormat ( HardwareIndexBuffer::IndexType  itype) [static]

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

Copyright © 2012 Torus Knot Software Ltd
Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
Last modified Mon Jul 27 2020 13:40:55