OGRE-Next
2.3
Object-Oriented Graphics Rendering Engine
|
#include <OgrePixelFormatGpu.h>
Public Member Functions | |
virtual const char * | getDataType (PixelFormatGpu pixelFormat, uint32 textureType, bool isMsaa, ResourceAccess::ResourceAccess access) const =0 |
virtual const char * | getPixelFormatType (PixelFormatGpu pixelFormat) const =0 |
Converts a PixelFormat into its equivalent layout for image variables (GLSL) or its equivalent for D3D11/12 variables (HLSL). More... | |
|
pure virtual |
pixelFormat | |
textureType | See TextureTypes::TextureTypes |
isMsaa | |
access | Texture access. Use ResourceAccess::Undefined for requesting sampling mode |
Implemented in Ogre::VulkanPixelFormatToShaderType, Ogre::MetalPixelFormatToShaderType, Ogre::GL3PlusPixelFormatToShaderType, Ogre::D3D11PixelFormatToShaderType, and Ogre::NULLPixelFormatToShaderType.
|
pure virtual |
Converts a PixelFormat into its equivalent layout for image variables (GLSL) or its equivalent for D3D11/12 variables (HLSL).
Used mostly with UAVs.
pixelFormat | Pixel format to convert. |
Implemented in Ogre::VulkanPixelFormatToShaderType, Ogre::MetalPixelFormatToShaderType, Ogre::GL3PlusPixelFormatToShaderType, Ogre::D3D11PixelFormatToShaderType, and Ogre::NULLPixelFormatToShaderType.