![]() |
OGRE-Next 3.0.0
Object-Oriented Graphics Rendering Engine
|
#include <OgrePixelFormatGpu.h>
Inheritance diagram for Ogre::PixelFormatToShaderType: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). | |
|
pure virtual |
| pixelFormat | |
| textureType | See TextureTypes::TextureTypes |
| isMsaa | |
| access | Texture access. Use ResourceAccess::Undefined for requesting sampling mode |
Implemented in Ogre::D3D11PixelFormatToShaderType, Ogre::GL3PlusPixelFormatToShaderType, Ogre::MetalPixelFormatToShaderType, Ogre::NULLPixelFormatToShaderType, and Ogre::VulkanPixelFormatToShaderType.
|
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::D3D11PixelFormatToShaderType, Ogre::GL3PlusPixelFormatToShaderType, Ogre::MetalPixelFormatToShaderType, Ogre::NULLPixelFormatToShaderType, and Ogre::VulkanPixelFormatToShaderType.