OGRE 2.1
Object-Oriented Graphics Rendering Engine
Loading...
Searching...
No Matches
Ogre::NULLPixelFormatToShaderType Class Reference

#include <OgreNULLRenderSystem.h>

+ Inheritance diagram for Ogre::NULLPixelFormatToShaderType:

Public Member Functions

virtual const chargetPixelFormatType (PixelFormat pixelFormat) const
 Converts a PixelFormat into its equivalent layout for image variables (GLSL) or its equivalent for D3D11/12 variables (HLSL).
 

Member Function Documentation

◆ getPixelFormatType()

virtual const char * Ogre::NULLPixelFormatToShaderType::getPixelFormatType ( PixelFormat  pixelFormat) const
inlinevirtual

Converts a PixelFormat into its equivalent layout for image variables (GLSL) or its equivalent for D3D11/12 variables (HLSL).

Used mostly with UAVs.

Parameters
pixelFormatPixel format to convert.
Returns
String for the shader to use "as is". If the Pixel Format doesn't have a shader equivalent (i.e. depth formats), a null pointer is returned. The validity of the pointer lasts as long as the RenderSystem remains loaded.

Implements Ogre::PixelFormatToShaderType.


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