|
@@ -25,24 +25,26 @@ namespace CamelotEngine
|
|
|
D3D_FUSAGE_MIP
|
|
D3D_FUSAGE_MIP
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
- /// return a D3D11 equivalent for a Ogre TextureAddressingMode value
|
|
|
|
|
|
|
+ /// return a D3D11 equivalent for an engine TextureAddressingMode value
|
|
|
static D3D11_TEXTURE_ADDRESS_MODE get(TextureAddressingMode tam);
|
|
static D3D11_TEXTURE_ADDRESS_MODE get(TextureAddressingMode tam);
|
|
|
- /// return a D3D11 equivalent for a Ogre SceneBlendFactor value
|
|
|
|
|
|
|
+ /// return a D3D11 equivalent for an engine SceneBlendFactor value
|
|
|
static D3D11_BLEND get(SceneBlendFactor sbf);
|
|
static D3D11_BLEND get(SceneBlendFactor sbf);
|
|
|
- /// return a D3D11 equivalent for a Ogre SceneBlendOperation value
|
|
|
|
|
|
|
+ /// return a D3D11 equivalent for an engine SceneBlendOperation value
|
|
|
static D3D11_BLEND_OP get(SceneBlendOperation sbo);
|
|
static D3D11_BLEND_OP get(SceneBlendOperation sbo);
|
|
|
- /// return a D3D11 equivalent for a Ogre CompareFunction value
|
|
|
|
|
|
|
+ /// return a D3D11 equivalent for an engine CompareFunction value
|
|
|
static D3D11_COMPARISON_FUNC get(CompareFunction cf);
|
|
static D3D11_COMPARISON_FUNC get(CompareFunction cf);
|
|
|
- /// return a D3D11 equivalent for a Ogre CillingMode value
|
|
|
|
|
|
|
+ /// return a D3D11 equivalent for an engine CillingMode value
|
|
|
static D3D11_CULL_MODE get(CullingMode cm, bool flip = false);
|
|
static D3D11_CULL_MODE get(CullingMode cm, bool flip = false);
|
|
|
- /// return a D3D11 equivalent for a Ogre PolygonMode value
|
|
|
|
|
|
|
+ /// return a D3D11 equivalent for an engine PolygonMode value
|
|
|
static D3D11_FILL_MODE get(PolygonMode level);
|
|
static D3D11_FILL_MODE get(PolygonMode level);
|
|
|
- /// return a D3D11 equivalent for a Ogre StencilOperation value
|
|
|
|
|
|
|
+ /// return a D3D11 equivalent for an engine StencilOperation value
|
|
|
static D3D11_STENCIL_OP get(StencilOperation op, bool invert = false);
|
|
static D3D11_STENCIL_OP get(StencilOperation op, bool invert = false);
|
|
|
- /// return a D3D11 state type for Ogre FilterType value
|
|
|
|
|
|
|
+ /// return a D3D11 equivalent for an engine DepthStencilFormat
|
|
|
|
|
+ static DXGI_FORMAT get(DepthStencilFormat format);
|
|
|
|
|
+ /// return a D3D11 state type for engine FilterType value
|
|
|
static DWORD get(FilterType ft);
|
|
static DWORD get(FilterType ft);
|
|
|
static D3D11_FILTER get(const FilterOptions minification, const FilterOptions magnification, const FilterOptions mips, const bool comparison = false);
|
|
static D3D11_FILTER get(const FilterOptions minification, const FilterOptions magnification, const FilterOptions mips, const bool comparison = false);
|
|
|
- /// return the combination of D3DUSAGE values for Ogre buffer usage
|
|
|
|
|
|
|
+ /// return the combination of D3DUSAGE values for engine buffer usage
|
|
|
static DWORD get(HardwareBuffer::Usage usage);
|
|
static DWORD get(HardwareBuffer::Usage usage);
|
|
|
/// Get lock options
|
|
/// Get lock options
|
|
|
static D3D11_MAP get(LockOptions options, HardwareBuffer::Usage usage);
|
|
static D3D11_MAP get(LockOptions options, HardwareBuffer::Usage usage);
|
|
@@ -58,9 +60,9 @@ namespace CamelotEngine
|
|
|
static bool isMappingRead(D3D11_MAP map);
|
|
static bool isMappingRead(D3D11_MAP map);
|
|
|
static D3D11_BOX toDx11Box(const Box &inBox);
|
|
static D3D11_BOX toDx11Box(const Box &inBox);
|
|
|
|
|
|
|
|
- /// utility method, convert D3D11 pixel format to Ogre pixel format
|
|
|
|
|
|
|
+ /// utility method, convert D3D11 pixel format to engine pixel format
|
|
|
static PixelFormat _getPF(DXGI_FORMAT d3dPF);
|
|
static PixelFormat _getPF(DXGI_FORMAT d3dPF);
|
|
|
- /// utility method, convert Ogre pixel format to D3D11 pixel format
|
|
|
|
|
|
|
+ /// utility method, convert engine pixel format to D3D11 pixel format
|
|
|
static DXGI_FORMAT _getPF(PixelFormat ogrePF);
|
|
static DXGI_FORMAT _getPF(PixelFormat ogrePF);
|
|
|
//
|
|
//
|
|
|
static D3D11_USAGE _getUsage(HardwareBuffer::Usage mUsage);
|
|
static D3D11_USAGE _getUsage(HardwareBuffer::Usage mUsage);
|
|
@@ -71,7 +73,7 @@ namespace CamelotEngine
|
|
|
|
|
|
|
|
static bool _isDynamic(int mUsage);
|
|
static bool _isDynamic(int mUsage);
|
|
|
|
|
|
|
|
- /// utility method, find closest Ogre pixel format that D3D11 can support
|
|
|
|
|
|
|
+ /// utility method, find closest engine pixel format that D3D11 can support
|
|
|
static PixelFormat _getClosestSupportedPF(PixelFormat ogrePF);
|
|
static PixelFormat _getClosestSupportedPF(PixelFormat ogrePF);
|
|
|
|
|
|
|
|
static TextureType _getTexType(D3D11_SRV_DIMENSION type);
|
|
static TextureType _getTexType(D3D11_SRV_DIMENSION type);
|