OGRE-Next
2.3
Object-Oriented Graphics Rendering Engine
|
Implementation of GL ES 2.x as a rendering system. More...
#include <OgreGLES2RenderSystem.h>
Public Member Functions | |
GLES2RenderSystem () | |
virtual | ~GLES2RenderSystem () |
void | _addMetrics (const RenderingMetrics &newMetrics) |
void | _applyObliqueDepthProjection (Matrix4 &matrix, const Plane &plane, bool forGpuProgram) |
See RenderSystem. More... | |
void | _beginFrame () |
See RenderSystem. More... | |
virtual void | _beginFrameOnce () |
Signifies the beginning of the main frame. More... | |
virtual void | _bindTextureUavCS (uint32 slot, Texture *texture, ResourceAccess::ResourceAccess access, int32 mipmapLevel, int32 textureArrayIndex, PixelFormat pixelFormat) |
void | _cleanupDepthBuffers () |
virtual void | _clearStateAndFlushCommandBuffer () |
On D3D11 calls ClearState followed by Flush(). More... | |
virtual void | _convertOpenVrProjectionMatrix (const Matrix4 &matrix, Matrix4 &dest) |
Converts an OpenVR projection matrix to have the proper depth range and reverse Z settings. More... | |
virtual void | _convertProjectionMatrix (const Matrix4 &matrix, Matrix4 &dest) |
Converts a uniform projection matrix to suitable for this render system. More... | |
DepthBuffer * | _createDepthBufferFor (RenderTarget *renderTarget, bool exactMatchFormat) |
virtual Window * | _createRenderWindow (const String &name, uint32 width, uint32 height, bool fullScreen, const NameValuePairList *miscParams=0)=0 |
Creates a new rendering window. More... | |
RenderWindow * | _createRenderWindow (const String &name, unsigned int width, unsigned int height, bool fullScreen, const NameValuePairList *miscParams=0) |
Creates a new rendering window. More... | |
virtual bool | _createRenderWindows (const RenderWindowDescriptionList &renderWindowDescriptions, WindowList &createdWindows) |
Creates multiple rendering windows. More... | |
void | _dereferenceSharedDepthBuffer (TextureGpu *depthBuffer) |
Releases the reference count on a shared depth buffer. More... | |
virtual void | _descriptorSetSamplerCreated (DescriptorSetSampler *newSet) |
virtual void | _descriptorSetSamplerDestroyed (DescriptorSetSampler *set) |
virtual void | _descriptorSetTexture2Created (DescriptorSetTexture2 *newSet) |
virtual void | _descriptorSetTexture2Destroyed (DescriptorSetTexture2 *set) |
virtual void | _descriptorSetTextureCreated (DescriptorSetTexture *newSet) |
virtual void | _descriptorSetTextureDestroyed (DescriptorSetTexture *set) |
virtual void | _descriptorSetUavCreated (DescriptorSetUav *newSet) |
virtual void | _descriptorSetUavDestroyed (DescriptorSetUav *set) |
void | _destroyDepthBuffer (RenderWindow *pRenderWnd) |
virtual void | _dispatch (const HlmsComputePso &pso) |
void | _endFrame () |
See RenderSystem. More... | |
virtual void | _endFrameOnce () |
Called once per frame, regardless of how many active workspaces there are. More... | |
Viewport & | _getCurrentRenderViewport () |
virtual const String & | _getDefaultViewportMaterialScheme () const |
Returns the default material scheme used by the render system. More... | |
void | _getDepthStencilFormatFor (GLenum internalColourFormat, GLenum *depthFormat, GLenum *stencilFormat) |
Mimics D3D9RenderSystem::_getDepthStencilFormatFor, if no FBO RTT manager, outputs GL_NONE. More... | |
GLES2Context * | _getMainContext () |
Returns the main context. More... | |
virtual void | _hlmsBlendblockCreated (HlmsBlendblock *newBlock) |
virtual void | _hlmsBlendblockDestroyed (HlmsBlendblock *block) |
virtual void | _hlmsComputePipelineStateObjectCreated (HlmsComputePso *newPso) |
virtual void | _hlmsComputePipelineStateObjectDestroyed (HlmsComputePso *newPso) |
virtual void | _hlmsMacroblockCreated (HlmsMacroblock *newBlock) |
virtual void | _hlmsMacroblockDestroyed (HlmsMacroblock *block) |
virtual void | _hlmsPipelineStateObjectCreated (HlmsPso *newPso) |
virtual void | _hlmsPipelineStateObjectDestroyed (HlmsPso *pso) |
virtual void | _hlmsSamplerblockCreated (HlmsSamplerblock *newBlock) |
virtual void | _hlmsSamplerblockDestroyed (HlmsSamplerblock *block) |
RenderWindow * | _initialise (bool autoCreateWindow, const String &windowTitle="OGRE Render Window") |
See RenderSystem. More... | |
void | _makeOrthoMatrix (const Radian &fovy, Real aspect, Real nearPlane, Real farPlane, Matrix4 &dest, bool forGpuProgram=false) |
See RenderSystem. More... | |
void | _makeProjectionMatrix (const Radian &fovy, Real aspect, Real nearPlane, Real farPlane, Matrix4 &dest, bool forGpuProgram=false) |
See RenderSystem. More... | |
void | _makeProjectionMatrix (Real left, Real right, Real bottom, Real top, Real nearPlane, Real farPlane, Matrix4 &dest, bool forGpuProgram=false) |
See RenderSystem. More... | |
virtual void | _makeRsProjectionMatrix (const Matrix4 &matrix, Matrix4 &dest, Real nearPlane, Real farPlane, ProjectionType projectionType) |
Takes a regular source projection matrix in range [-1; 1] and converts it to a projection matrix in 'dest' with reverse Z range [1; 0]. More... | |
void | _oneTimeContextInitialization () |
One time initialization for the RenderState of a context. More... | |
virtual RenderSystemContext * | _pauseFrame () |
Pause rendering for a frame. More... | |
virtual void | _render (const CbDrawCallIndexed *cmd) |
Renders the VAO. Assumes _setVertexArrayObject has already been called. More... | |
virtual void | _render (const CbDrawCallStrip *cmd) |
virtual void | _render (const v1::CbDrawCallIndexed *cmd) |
Renders a V1 RenderOperation. Assumes _setRenderOperation has already been called. More... | |
virtual void | _render (const v1::CbDrawCallStrip *cmd) |
void | _render (const v1::RenderOperation &op) |
See RenderSystem. More... | |
virtual void | _renderEmulated (const CbDrawCallIndexed *cmd) |
virtual void | _renderEmulated (const CbDrawCallStrip *cmd) |
virtual void | _renderEmulatedNoBaseInstance (const CbDrawCallIndexed *cmd) |
virtual void | _renderEmulatedNoBaseInstance (const CbDrawCallStrip *cmd) |
virtual void | _renderNoBaseInstance (const v1::CbDrawCallIndexed *cmd) |
virtual void | _renderNoBaseInstance (const v1::CbDrawCallStrip *cmd) |
void | _resetMetrics () |
virtual void | _resumeFrame (RenderSystemContext *context) |
Resume rendering for a frame. More... | |
virtual void | _setBindingType (TextureUnitState::BindingType bindigType) |
Set texture unit binding type. More... | |
virtual void | _setComputePso (const HlmsComputePso *pso) |
Unlike _setPipelineStateObject, the RenderSystem will check if the PSO has changed to avoid redundant state changes (since it's hard to do it at Hlms level) More... | |
virtual void | _setCurrentDeviceFromTexture (TextureGpu *texture)=0 |
Because Ogre doesn't (yet) have the notion of a 'device' or 'GL context', this function lets Ogre know which device should be used by providing a texture. More... | |
void | _setDepthBias (float constantBias, float slopeScaleBias) |
See RenderSystem. More... | |
void | _setDepthBufferCheckEnabled (bool enabled=true) |
See RenderSystem. More... | |
void | _setDepthBufferWriteEnabled (bool enabled=true) |
See RenderSystem. More... | |
virtual void | _setGeometryTexture (size_t unit, TextureGpu *tex) |
void | _setHlmsBlendblock (const HlmsBlendblock *blendblock, const GLES2HlmsPso *pso) |
void | _setHlmsMacroblock (const HlmsMacroblock *macroblock, const GLES2HlmsPso *pso) |
virtual void | _setHlmsSamplerblock (uint8 texUnit, const HlmsSamplerblock *samplerblock) |
@See HlmsSamplerblock. More... | |
virtual void | _setHlmsSamplerblockCS (uint8 texUnit, const HlmsSamplerblock *samplerblock) |
virtual void | _setIndirectBuffer (IndirectBufferPacked *indirectBuffer) |
virtual void | _setPipelineStateObject (const HlmsPso *pso) |
@See HlmsPso More... | |
void | _setPointParameters (Real size, bool attenuationEnabled, Real constant, Real linear, Real quadratic, Real minSize, Real maxSize) |
See RenderSystem. More... | |
void | _setPointSpritesEnabled (bool enabled) |
See RenderSystem. More... | |
void | _setProjectionMatrix (const Matrix4 &m) |
See RenderSystem. More... | |
virtual void | _setRenderOperation (const v1::CbRenderOp *cmd) |
void | _setRenderTarget (RenderTarget *target, uint8 viewportRenderTargetFlags) |
Set current render target to target, enabling its GL context if needed. More... | |
virtual void | _setSamplers (uint32 slotStart, const DescriptorSetSampler *set)=0 |
virtual void | _setSamplersCS (uint32 slotStart, const DescriptorSetSampler *set)=0 |
void | _setSceneBlending (SceneBlendFactor sourceFactor, SceneBlendFactor destFactor, SceneBlendOperation op) |
void | _setSceneBlendingOperation (SceneBlendOperation op) |
void | _setSeparateSceneBlending (SceneBlendFactor sourceFactor, SceneBlendFactor destFactor, SceneBlendFactor sourceFactorAlpha, SceneBlendFactor destFactorAlpha, SceneBlendOperation op, SceneBlendOperation alphaOp) |
void | _setSeparateSceneBlendingOperation (SceneBlendOperation op, SceneBlendOperation alphaOp) |
void | _setSurfaceParams (const ColourValue &ambient, const ColourValue &diffuse, const ColourValue &specular, const ColourValue &emissive, Real shininess, TrackVertexColourType tracking) |
See RenderSystem. More... | |
virtual void | _setTessellationDomainTexture (size_t unit, TextureGpu *tex) |
virtual void | _setTessellationHullTexture (size_t unit, TextureGpu *tex) |
void | _setTexture (size_t unit, bool enabled, Texture *tex, bool bDepthReadOnly) |
See RenderSystem. More... | |
virtual void | _setTexture (size_t unit, TextureGpu *texPtr, bool bDepthReadOnly)=0 |
Sets the texture to bind to a given texture unit. More... | |
void | _setTextureBlendMode (size_t stage, const LayerBlendModeEx &bm) |
See RenderSystem. More... | |
void | _setTextureCoordCalculation (size_t stage, TexCoordCalcMethod m, const Frustum *frustum=0) |
See RenderSystem. More... | |
virtual void | _setTextureCS (uint32 slot, bool enabled, Texture *texPtr) |
void | _setTextureMatrix (size_t stage, const Matrix4 &xform) |
See RenderSystem. More... | |
virtual void | _setTextureProjectionRelativeTo (bool enabled, const Vector3 &pos) |
Notify the rendersystem that it should adjust texture projection to be relative to a different origin. More... | |
virtual void | _setTextures (uint32 slotStart, const DescriptorSetTexture *set, uint32 hazardousTexIdx)=0 |
virtual void | _setTextures (uint32 slotStart, const DescriptorSetTexture2 *set)=0 |
virtual void | _setTexturesCS (uint32 slotStart, const DescriptorSetTexture *set)=0 |
virtual void | _setTexturesCS (uint32 slotStart, const DescriptorSetTexture2 *set)=0 |
virtual void | _setTextureUnitSettings (size_t texUnit, TextureUnitState &tl) |
Utility function for setting all the properties of a texture unit at once. More... | |
virtual void | _setUavCS (uint32 slotStart, const DescriptorSetUav *set)=0 |
virtual void | _setVertexArrayObject (const VertexArrayObject *vao) |
Part of the low level rendering interface. More... | |
virtual void | _setVertexTexture (size_t unit, TextureGpu *tex) |
Binds a texture to a vertex, geometry, compute, tessellation hull or tessellation domain sampler. More... | |
void | _setViewMatrix (const Matrix4 &m) |
See RenderSystem. More... | |
void | _setViewport (Viewport *vp) |
See RenderSystem. More... | |
virtual void | _setWorldMatrices (const Matrix4 *m, unsigned short count) |
Sets multiple world matrices (vertex blending). More... | |
void | _setWorldMatrix (const Matrix4 &m) |
See RenderSystem. More... | |
virtual void | _startLegacyV1Rendering () |
May override the current VertexArrayObject! More... | |
void | _switchContext (GLES2Context *context) |
Switch GL context, dealing with involved internal cached states too. More... | |
void | _unregisterContext (GLES2Context *context) |
Unregister a render target->context mapping. More... | |
void | _update () |
Called once per frame, regardless of how many active workspaces there are. More... | |
void | _useLights (const LightList &lights, unsigned short limit) |
See RenderSystem. More... | |
virtual void | addClipPlane (const Plane &p) |
Add a user clipping plane. More... | |
virtual void | addClipPlane (Real A, Real B, Real C, Real D) |
Add a user clipping plane. More... | |
virtual void | addListener (Listener *l) |
Adds a listener to the custom events that this render system can raise. More... | |
bool | areFixedFunctionLightsInViewSpace () const |
See RenderSystem. More... | |
virtual void | beginGPUSampleProfile (const String &name, uint32 *hashCache) |
virtual void | beginProfileEvent (const String &eventName) |
This marks the beginning of an event for GPU profiling. More... | |
virtual void | beginRenderPassDescriptor (RenderPassDescriptor *desc, TextureGpu *anyTarget, uint8 mipLevel, const Vector4 *viewportSizes, const Vector4 *scissors, uint32 numViewports, bool overlaysEnabled, bool warnIfRtvWasFlushed) |
When the descriptor is set to Load clear, two possible things may happen: More... | |
void | bindGpuProgramParameters (GpuProgramType gptype, GpuProgramParametersSharedPtr params, uint16 mask) |
Bind Gpu program parameters. More... | |
void | bindGpuProgramPassIterationParameters (GpuProgramType gptype) |
Only binds Gpu program parameters used for passes that have more than one iteration rendering. More... | |
bool | checkExtension (const String &ext) const |
Checks for the presense of an API-specific extension (eg. Vulkan, GL) More... | |
virtual void | clearFrameBuffer (RenderPassDescriptor *renderPassDesc, TextureGpu *anyTarget, uint8 mipLevel)=0 |
Immediately clears the whole frame buffer on the selected RenderPassDescriptor. More... | |
virtual void | clearFrameBuffer (unsigned int buffers, const ColourValue &colour=ColourValue::Black, Real depth=1.0f, unsigned short stencil=0) |
virtual void | clearUAVs () |
virtual void | compositorWorkspaceBegin (CompositorWorkspace *workspace, const bool forceBeginFrame) |
See RenderSystem::updateCompositorManager. More... | |
virtual void | compositorWorkspaceEnd (CompositorWorkspace *workspace, const bool forceEndFrame) |
See RenderSystem::updateCompositorManager. More... | |
virtual void | compositorWorkspaceUpdate (CompositorWorkspace *workspace) |
See RenderSystem::updateCompositorManager. More... | |
virtual void | convertColourValue (const ColourValue &colour, uint32 *pDest) |
Generates a packed data version of the passed in ColourValue suitable for use as with this RenderSystem. More... | |
GLint | convertCompareFunction (CompareFunction func) const |
GLint | convertStencilOp (StencilOperation op, bool invert=false) const |
HardwareOcclusionQuery * | createHardwareOcclusionQuery () |
Create an object for performing hardware occlusion queries. More... | |
virtual MultiRenderTarget * | createMultiRenderTarget (const String &name) |
virtual RenderPassDescriptor * | createRenderPassDescriptor ()=0 |
virtual RenderSystemCapabilities * | createRenderSystemCapabilities () const |
See RenderSystem. More... | |
virtual void | debugAnnotationPop () |
virtual void | debugAnnotationPush (const String &event) |
Specifically meant to mark passes in RenderDoc. More... | |
virtual void | deinitGPUProfiling () |
virtual void | destroyHardwareOcclusionQuery (HardwareOcclusionQuery *hq) |
Destroy a hardware occlusion query object. More... | |
void | destroyRenderPassDescriptor (RenderPassDescriptor *renderPassDesc) |
void | destroyRenderWindow (RenderWindow *pWin) |
See RenderSystem. More... | |
virtual void | destroyRenderWindow (Window *window) |
Destroys a render window. More... | |
virtual void | discardFrameBuffer (unsigned int buffers) |
void | enableClipPlane (ushort index, bool enable) |
See RenderSystem. More... | |
virtual void | endCopyEncoder () |
Required when caller will soon start analyzing barriers (e.g. More... | |
virtual void | endGpuDebuggerFrameCapture (Window *window) |
See RenderSystem::startGpuDebuggerFrameCapture Call this function when you're done capturing a frame. More... | |
virtual void | endGPUSampleProfile (const String &name) |
virtual void | endProfileEvent () |
Ends the currently active GPU profiling event. More... | |
virtual void | endRenderPassDescriptor () |
virtual void | executeRenderPassDescriptorDelayedActions () |
Metal needs to delay RenderCommand creation to the last minute, because we can't issue blit operations (e.g. More... | |
virtual void | executeResourceTransition (const ResourceTransitionArray &rstCollection) |
virtual void | flushCommands ()=0 |
BarrierSolver & | getBarrierSolver () |
BoundUav | getBoundUav (size_t slot) const |
const RenderSystemCapabilities * | getCapabilities () const |
Gets the capabilities of the render system. More... | |
VertexElementType | getColourVertexElementType () const |
See RenderSystem. More... | |
ConfigOptionMap & | getConfigOptions () |
See RenderSystem. More... | |
RenderPassDescriptor * | getCurrentPassDescriptor () |
Viewport * | getCurrentRenderViewports () |
virtual void | getCustomAttribute (const String &name, void *pData) |
Gets a custom (maybe platform-specific) attribute. More... | |
bool | getDebugShaders () const |
virtual TextureGpu * | getDepthBufferFor (TextureGpu *colourTexture, uint16 poolId, bool preferDepthTexture, PixelFormatGpu depthBufferFormat) |
unsigned int | getDisplayMonitorCount () const |
Gets the number of display monitors. More... | |
virtual const DriverVersion & | getDriverVersion () const |
Returns the driver version. More... | |
String | getErrorDescription (long errorNumber) const |
See RenderSystem. More... | |
const String & | getFriendlyName () const |
See RenderSystem. More... | |
GLES2Support * | getGLES2Support () |
v1::HardwareVertexBufferSharedPtr | getGlobalInstanceVertexBuffer () const |
Returns the global instance vertex buffer. More... | |
v1::VertexDeclaration * | getGlobalInstanceVertexBufferVertexDeclaration () const |
Gets vertex declaration for the global vertex buffer for the global instancing. More... | |
size_t | getGlobalNumberOfInstances () const |
Gets the global number of instances. More... | |
Real | getHorizontalTexelOffset () |
Returns the horizontal texel offset value required for mapping texel origins to pixel origins in this rendersystem. More... | |
bool | getInvertedClipSpaceY () const |
+Y is downwards in NDC (Normalized Device Coordinates). Only Vulkan has this problem. More... | |
virtual bool | getInvertVertexWinding () const |
Indicates whether or not the vertex windings set will be inverted for the current render (e.g. More... | |
uint32 | getMaxBoundViewports () |
Real | getMaximumDepthInputValue () |
Gets the maximum (farthest) depth value to be used when rendering using identity transforms. More... | |
const RenderingMetrics & | getMetrics () const |
Real | getMinimumDepthInputValue () |
Gets the minimum (closest) depth value to be used when rendering using identity transforms. More... | |
RenderSystemCapabilities * | getMutableCapabilities () |
Get a pointer to the current capabilities being used by the RenderSystem. More... | |
const String & | getName () const |
See RenderSystem. More... | |
uint16 | getNativeShadingLanguageVersion () const |
Gets the native shading language version for this render system. More... | |
virtual size_t | getNumPriorityConfigOptions () const |
Number of priority config options in RenderSystem::getPriorityConfigOption. More... | |
virtual const char * | getPriorityConfigOption (size_t idx) const |
Some options depend on other options. More... | |
RENDERDOC_API_1_4_1 * | getRenderDocApi () |
Returns the RenderDoc API handle in case you want to do more advanced functionality than what we expose. More... | |
virtual const StringVector & | getRenderSystemEvents () const |
Gets a list of the rendersystem specific events that this rendersystem can raise. More... | |
virtual Real | getRSDepthRange () const |
OpenGL depth is in range [-1;1] so it returns 2.0f; D3D11 & Metal are in range [0;1] so it returns 1.0f;. More... | |
const StencilParams & | getStencilBufferParams () const |
TextureGpuManager * | getTextureGpuManager () const |
VaoManager * | getVaoManager () const |
Real | getVerticalTexelOffset () |
Returns the vertical texel offset value required for mapping texel origins to pixel origins in this rendersystem. More... | |
bool | getWBufferEnabled () const |
Returns true if the renderer will try to use W-buffers when available. More... | |
virtual bool | hasAnisotropicMipMapFilter () const |
See RenderSystem. More... | |
bool | hasMinGLVersion (int major, int minor) const |
virtual void | initGPUProfiling () |
void | initialiseContext (RenderWindow *primary) |
void | initialiseFromRenderSystemCapabilities (RenderSystemCapabilities *caps, RenderTarget *primary) |
See RenderSystem. More... | |
virtual bool | isGpuProgramBound (GpuProgramType gptype) |
Returns whether or not a Gpu program of the given type is currently bound. More... | |
bool | isReverseDepth () const |
virtual bool | isSameLayout (ResourceLayout::Layout a, ResourceLayout::Layout b, const TextureGpu *texture, bool bIsDebugCheck) const |
Returns true if 'a' and 'b' internally map to the same layout and should be considered equivalent for a given texture. More... | |
virtual bool | isStaticBufferLockable () const |
bool | loadRenderDocApi () |
Explicitly loads RenderDoc. More... | |
virtual void | markProfileEvent (const String &eventName) |
Marks an instantaneous event for graphics profilers. More... | |
OGRE_MUTEX (mThreadInitMutex) | |
void | operator delete (void *ptr) |
void | operator delete (void *ptr, const char *, int, const char *) |
void | operator delete (void *ptr, void *) |
void | operator delete[] (void *ptr) |
void | operator delete[] (void *ptr, const char *, int, const char *) |
void * | operator new (size_t sz) |
void * | operator new (size_t sz, const char *file, int line, const char *func) |
operator new, with debug line info More... | |
void * | operator new (size_t sz, void *ptr) |
placement operator new More... | |
void * | operator new[] (size_t sz) |
void * | operator new[] (size_t sz, const char *file, int line, const char *func) |
array operator new, with debug line info More... | |
void | postExtraThreadsStarted () |
void | preExtraThreadsStarted () |
Tell the rendersystem to perform any prep tasks it needs to directly before other threads which might access the rendering API are registered. More... | |
virtual void | queueBindUAV (uint32 slot, TexturePtr texture, ResourceAccess::ResourceAccess access=ResourceAccess::ReadWrite, int32 mipmapLevel=0, int32 textureArrayIndex=0, PixelFormat pixelFormat=PF_UNKNOWN) |
virtual void | queueBindUAV (uint32 slot, UavBufferPacked *buffer, ResourceAccess::ResourceAccess access=ResourceAccess::ReadWrite, size_t offset=0, size_t sizeBytes=0) |
void | queueBindUAVs (const DescriptorSetUav *descSetUav) |
Queues the binding of an UAV to the binding point/slot. More... | |
void | registerThread () |
Register the an additional thread which may make calls to rendersystem-related objects. More... | |
void | reinitialise () |
See RenderSystem. More... | |
virtual void | removeListener (Listener *l) |
Remove a listener to the custom events that this render system can raise. More... | |
virtual void | resetClipPlanes () |
Clears the user clipping region. More... | |
void | setClipPlane (ushort index, Real A, Real B, Real C, Real D) |
See RenderSystem. More... | |
virtual void | setClipPlanes (const PlaneList &clipPlanes) |
Sets the user clipping region. More... | |
void | setClipPlanesImpl (const Ogre::PlaneList &planeList) |
Internal method used to set the underlying clip planes when needed. More... | |
void | setConfigOption (const String &name, const String &value) |
See RenderSystem. More... | |
virtual void | setCurrentPassIterationCount (const size_t count) |
set the current multi pass count value. More... | |
void | setDebugShaders (bool bDebugShaders) |
Instructs the RenderSystem to compile shaders without optimizations and with debug information, for easier debugging on APIs that support it. More... | |
virtual void | setDeriveDepthBias (bool derive, float baseValue=0.0f, float multiplier=0.0f, float slopeScale=0.0f) |
Tell the render system whether to derive a depth bias on its own based on the values passed to it in setCurrentPassIterationCount. More... | |
virtual bool | setDrawBuffer (ColourBufferType colourBuffer) |
Sets the colour buffer that the render system will to draw. More... | |
void | setGlobalInstanceVertexBuffer (const v1::HardwareVertexBufferSharedPtr &val) |
Sets the global instance vertex buffer. More... | |
void | setGlobalInstanceVertexBufferVertexDeclaration (v1::VertexDeclaration *val) |
Sets vertex declaration for the global vertex buffer for the global instancing. More... | |
void | setGlobalNumberOfInstances (const size_t val) |
Sets the global number of instances. More... | |
void | setInvertVertexWinding (bool invert) |
Sets whether or not vertex windings set should be inverted; this can be important for rendering reflections. More... | |
void | setMetricsRecordingEnabled (bool bEnable) |
virtual void | setStencilBufferParams (uint32 refValue, const StencilParams &stencilParams) |
See RenderSystem. More... | |
void | setUavStartingSlot (uint32 startingSlot) |
In Direct3D11, UAV & RenderTargets share the same slots. More... | |
void | setWBufferEnabled (bool enabled) |
Sets whether or not W-buffers are enabled if they are available for this renderer. More... | |
void | shutdown () |
See RenderSystem. More... | |
virtual bool | startGpuDebuggerFrameCapture (Window *window) |
Programmatically performs a GPU capture when attached to a GPU debugger like RenderDoc or Metal Graphics Debugger. More... | |
void | unregisterThread () |
Unregister an additional thread which may make calls to rendersystem-related objects. More... | |
virtual void | updateCompositorManager (CompositorManager2 *compositorManager) |
This gives the renderer a chance to perform the compositor update in a special way. More... | |
virtual void | useCustomRenderSystemCapabilities (RenderSystemCapabilities *capabilities) |
Force the render system to use the special capabilities. More... | |
String | validateConfigOptions () |
See RenderSystem. More... | |
virtual bool | validateDevice (bool forceDeviceElection=false) |
Some render systems have moments when GPU device is temporarily unavailable, for example when D3D11 device is lost, or when iOS app is in background, etc. More... | |
virtual SampleDescription | validateSampleDescription (const SampleDescription &sampleDesc, PixelFormatGpu format) |
Returns supported sample description for requested FSAA mode, with graceful downgrading. More... | |
Static Public Member Functions | |
static void | addSharedListener (Listener *listener) |
Sets shared listener. More... | |
static void | fireSharedEvent (const String &name, const NameValuePairList *params=0) |
static void | removeSharedListener (Listener *listener) |
Remove shared listener to the custom events that this render system can raise. More... | |
static CompareFunction | reverseCompareFunction (CompareFunction depthFunc) |
Reverts the compare order e.g. More... | |
Friends | |
class | ShaderGeneratorTechniqueResolverListener |
Implementation of GL ES 2.x as a rendering system.
Ogre::GLES2RenderSystem::GLES2RenderSystem | ( | ) |
|
virtual |
|
inherited |
void Ogre::GLES2RenderSystem::_applyObliqueDepthProjection | ( | Matrix4 & | matrix, |
const Plane & | plane, | ||
bool | forGpuProgram | ||
) |
See RenderSystem.
|
virtual |
See RenderSystem.
Implements Ogre::RenderSystem.
|
virtualinherited |
Signifies the beginning of the main frame.
i.e. will only be called once per frame, not per viewport
Reimplemented in Ogre::MetalRenderSystem.
|
virtual |
|
inherited |
|
virtualinherited |
On D3D11 calls ClearState followed by Flush().
On GL3+ it calls glFlush
Do not call this function while inside rendering internals, as it will clear the device state, thus leaving it inconsistent with what we think it is set to.
Reimplemented in Ogre::D3D11RenderSystem.
|
virtualinherited |
Converts an OpenVR projection matrix to have the proper depth range and reverse Z settings.
matrix | |
dest |
Reimplemented in Ogre::GL3PlusRenderSystem.
|
virtualinherited |
Converts a uniform projection matrix to suitable for this render system.
Reimplemented in Ogre::GL3PlusRenderSystem, and Ogre::NULLRenderSystem.
DepthBuffer* Ogre::GLES2RenderSystem::_createDepthBufferFor | ( | RenderTarget * | renderTarget, |
bool | exactMatchFormat | ||
) |
|
pure virtualinherited |
Creates a new rendering window.
name | The name of the window. Used in other methods later like setRenderTarget and getRenderTarget. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
width | The width of the new window. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
height | The height of the new window. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
fullScreen | Specify true to make the window full screen without borders, title bar or menu bar. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
miscParams | A NameValuePairList describing the other parameters for the new rendering window. Options are case sensitive. Unrecognised parameters will be ignored silently. These values might be platform dependent, but these are present for all platforms unless indicated otherwise:
|
Implemented in Ogre::VulkanRenderSystem, Ogre::MetalRenderSystem, Ogre::GL3PlusRenderSystem, Ogre::D3D11RenderSystem, and Ogre::NULLRenderSystem.
RenderWindow* Ogre::GLES2RenderSystem::_createRenderWindow | ( | const String & | name, |
unsigned int | width, | ||
unsigned int | height, | ||
bool | fullScreen, | ||
const NameValuePairList * | miscParams = 0 |
||
) |
Creates a new rendering window.
name | The name of the window. Used in other methods later like setRenderTarget and getRenderTarget. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
width | The width of the new window. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
height | The height of the new window. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
fullScreen | Specify true to make the window full screen without borders, title bar or menu bar. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
miscParams | A NameValuePairList describing the other parameters for the new rendering window. Options are case sensitive. Unrecognised parameters will be ignored silently. These values might be platform dependent, but these are present for all platforms unless indicated otherwise:
|
|
virtualinherited |
Creates multiple rendering windows.
renderWindowDescriptions | Array of structures containing the descriptions of each render window. The structure's members are the same as the parameters of _createRenderWindow: name width height fullScreen miscParams See _createRenderWindow for details about each member. |
createdWindows | This array will hold the created render windows. |
Reimplemented in Ogre::GL3PlusRenderSystem.
|
inherited |
Releases the reference count on a shared depth buffer.
Does nothing if input is not a shared depth buffer.
|
inlinevirtualinherited |
Reimplemented in Ogre::VulkanRenderSystem.
|
inlinevirtualinherited |
Reimplemented in Ogre::VulkanRenderSystem.
|
inlinevirtualinherited |
Reimplemented in Ogre::VulkanRenderSystem, Ogre::MetalRenderSystem, Ogre::GL3PlusRenderSystem, and Ogre::D3D11RenderSystem.
|
inlinevirtualinherited |
Reimplemented in Ogre::VulkanRenderSystem, Ogre::MetalRenderSystem, Ogre::GL3PlusRenderSystem, and Ogre::D3D11RenderSystem.
|
inlinevirtualinherited |
Reimplemented in Ogre::VulkanRenderSystem, and Ogre::D3D11RenderSystem.
|
inlinevirtualinherited |
Reimplemented in Ogre::VulkanRenderSystem, and Ogre::D3D11RenderSystem.
|
inlinevirtualinherited |
Reimplemented in Ogre::VulkanRenderSystem, Ogre::MetalRenderSystem, Ogre::GL3PlusRenderSystem, and Ogre::D3D11RenderSystem.
|
inlinevirtualinherited |
Reimplemented in Ogre::VulkanRenderSystem, Ogre::MetalRenderSystem, Ogre::GL3PlusRenderSystem, and Ogre::D3D11RenderSystem.
void Ogre::GLES2RenderSystem::_destroyDepthBuffer | ( | RenderWindow * | pRenderWnd | ) |
|
virtual |
Implements Ogre::RenderSystem.
|
virtual |
See RenderSystem.
Implements Ogre::RenderSystem.
|
virtualinherited |
Called once per frame, regardless of how many active workspaces there are.
Gets called AFTER all RenderWindows have been swapped.
Reimplemented in Ogre::VulkanRenderSystem, and Ogre::MetalRenderSystem.
|
inlineinherited |
|
virtualinherited |
Returns the default material scheme used by the render system.
Systems that use the RTSS to emulate a fixed function pipeline (e.g. OpenGL ES 2, GL3+, DX11) need to override this function to return the default material scheme of the RTSS ShaderGenerator.
This is currently only used to set the default material scheme for viewports. It is a necessary step on these render systems for render textures to be rendered into properly.
Referenced by Ogre::CompositorPassSceneDef::CompositorPassSceneDef().
void Ogre::GLES2RenderSystem::_getDepthStencilFormatFor | ( | GLenum | internalColourFormat, |
GLenum * | depthFormat, | ||
GLenum * | stencilFormat | ||
) |
Mimics D3D9RenderSystem::_getDepthStencilFormatFor, if no FBO RTT manager, outputs GL_NONE.
|
inline |
Returns the main context.
|
virtual |
Reimplemented from Ogre::RenderSystem.
|
virtual |
Reimplemented from Ogre::RenderSystem.
|
inlinevirtualinherited |
Reimplemented in Ogre::VulkanRenderSystem, Ogre::MetalRenderSystem, Ogre::GL3PlusRenderSystem, and Ogre::D3D11RenderSystem.
|
inlinevirtualinherited |
Reimplemented in Ogre::MetalRenderSystem, Ogre::VulkanRenderSystem, Ogre::GL3PlusRenderSystem, and Ogre::D3D11RenderSystem.
|
virtual |
Reimplemented from Ogre::RenderSystem.
|
virtual |
Reimplemented from Ogre::RenderSystem.
|
virtual |
Reimplemented from Ogre::RenderSystem.
|
virtual |
Reimplemented from Ogre::RenderSystem.
|
virtual |
Reimplemented from Ogre::RenderSystem.
|
virtual |
Reimplemented from Ogre::RenderSystem.
|
virtual |
See RenderSystem.
Reimplemented from Ogre::RenderSystem.
void Ogre::GLES2RenderSystem::_makeOrthoMatrix | ( | const Radian & | fovy, |
Real | aspect, | ||
Real | nearPlane, | ||
Real | farPlane, | ||
Matrix4 & | dest, | ||
bool | forGpuProgram = false |
||
) |
See RenderSystem.
void Ogre::GLES2RenderSystem::_makeProjectionMatrix | ( | const Radian & | fovy, |
Real | aspect, | ||
Real | nearPlane, | ||
Real | farPlane, | ||
Matrix4 & | dest, | ||
bool | forGpuProgram = false |
||
) |
See RenderSystem.
void Ogre::GLES2RenderSystem::_makeProjectionMatrix | ( | Real | left, |
Real | right, | ||
Real | bottom, | ||
Real | top, | ||
Real | nearPlane, | ||
Real | farPlane, | ||
Matrix4 & | dest, | ||
bool | forGpuProgram = false |
||
) |
See RenderSystem.
|
virtualinherited |
Takes a regular source projection matrix in range [-1; 1] and converts it to a projection matrix in 'dest' with reverse Z range [1; 0].
_convertProjectionMatrix does the same thing but is more generic. This version assumes a standard projection matrix (i.e. not oblique) to maximize precision
matrix | |
dest | |
nearPlane | |
farPlane | |
projectionType |
Reimplemented in Ogre::GL3PlusRenderSystem.
void Ogre::GLES2RenderSystem::_oneTimeContextInitialization | ( | ) |
One time initialization for the RenderState of a context.
Things that only need to be set once, like the LightingModel can be defined here.
|
virtualinherited |
Pause rendering for a frame.
This has to be called after _beginFrame and before _endFrame. Will usually be called by the SceneManager, don't use this manually unless you know what you are doing.
|
virtual |
Renders the VAO. Assumes _setVertexArrayObject has already been called.
Implements Ogre::RenderSystem.
|
virtual |
Implements Ogre::RenderSystem.
|
virtual |
Renders a V1 RenderOperation. Assumes _setRenderOperation has already been called.
Implements Ogre::RenderSystem.
|
virtual |
Implements Ogre::RenderSystem.
|
virtual |
See RenderSystem.
Reimplemented from Ogre::RenderSystem.
|
virtual |
Implements Ogre::RenderSystem.
|
virtual |
Implements Ogre::RenderSystem.
|
virtual |
Reimplemented from Ogre::RenderSystem.
|
virtual |
Reimplemented from Ogre::RenderSystem.
|
virtual |
Reimplemented from Ogre::RenderSystem.
|
virtual |
Reimplemented from Ogre::RenderSystem.
|
inherited |
|
virtualinherited |
Resume rendering for a frame.
This has to be called after a _pauseFrame call Will usually be called by the SceneManager, don't use this manually unless you know what you are doing.
context | the render system context, as returned by _pauseFrame |
|
virtualinherited |
Set texture unit binding type.
Reimplemented in Ogre::D3D11RenderSystem.
|
virtual |
Unlike _setPipelineStateObject, the RenderSystem will check if the PSO has changed to avoid redundant state changes (since it's hard to do it at Hlms level)
Implements Ogre::RenderSystem.
|
pure virtualinherited |
Because Ogre doesn't (yet) have the notion of a 'device' or 'GL context', this function lets Ogre know which device should be used by providing a texture.
texture | Cannot be null. |
Implemented in Ogre::VulkanRenderSystem, Ogre::MetalRenderSystem, Ogre::GL3PlusRenderSystem, Ogre::D3D11RenderSystem, and Ogre::NULLRenderSystem.
void Ogre::GLES2RenderSystem::_setDepthBias | ( | float | constantBias, |
float | slopeScaleBias | ||
) |
See RenderSystem.
void Ogre::GLES2RenderSystem::_setDepthBufferCheckEnabled | ( | bool | enabled = true | ) |
See RenderSystem.
void Ogre::GLES2RenderSystem::_setDepthBufferWriteEnabled | ( | bool | enabled = true | ) |
See RenderSystem.
|
virtualinherited |
Reimplemented in Ogre::GL3PlusRenderSystem, and Ogre::D3D11RenderSystem.
void Ogre::GLES2RenderSystem::_setHlmsBlendblock | ( | const HlmsBlendblock * | blendblock, |
const GLES2HlmsPso * | pso | ||
) |
void Ogre::GLES2RenderSystem::_setHlmsMacroblock | ( | const HlmsMacroblock * | macroblock, |
const GLES2HlmsPso * | pso | ||
) |
|
virtual |
@See HlmsSamplerblock.
This function MUST be called after _setTexture, not before. Otherwise not all APIs may see the change.
Implements Ogre::RenderSystem.
|
virtual |
|
virtual |
Implements Ogre::RenderSystem.
|
virtual |
@See HlmsPso
Reimplemented from Ogre::RenderSystem.
|
inlinevirtual |
See RenderSystem.
Implements Ogre::RenderSystem.
|
inlinevirtual |
See RenderSystem.
Implements Ogre::RenderSystem.
|
virtual |
See RenderSystem.
Implements Ogre::RenderSystem.
|
virtual |
Implements Ogre::RenderSystem.
void Ogre::GLES2RenderSystem::_setRenderTarget | ( | RenderTarget * | target, |
uint8 | viewportRenderTargetFlags | ||
) |
Set current render target to target, enabling its GL context if needed.
|
pure virtualinherited |
|
pure virtualinherited |
void Ogre::GLES2RenderSystem::_setSceneBlending | ( | SceneBlendFactor | sourceFactor, |
SceneBlendFactor | destFactor, | ||
SceneBlendOperation | op | ||
) |
void Ogre::GLES2RenderSystem::_setSceneBlendingOperation | ( | SceneBlendOperation | op | ) |
void Ogre::GLES2RenderSystem::_setSeparateSceneBlending | ( | SceneBlendFactor | sourceFactor, |
SceneBlendFactor | destFactor, | ||
SceneBlendFactor | sourceFactorAlpha, | ||
SceneBlendFactor | destFactorAlpha, | ||
SceneBlendOperation | op, | ||
SceneBlendOperation | alphaOp | ||
) |
void Ogre::GLES2RenderSystem::_setSeparateSceneBlendingOperation | ( | SceneBlendOperation | op, |
SceneBlendOperation | alphaOp | ||
) |
|
inlinevirtual |
See RenderSystem.
Implements Ogre::RenderSystem.
|
virtualinherited |
Reimplemented in Ogre::GL3PlusRenderSystem, and Ogre::D3D11RenderSystem.
|
virtualinherited |
Reimplemented in Ogre::GL3PlusRenderSystem, and Ogre::D3D11RenderSystem.
void Ogre::GLES2RenderSystem::_setTexture | ( | size_t | unit, |
bool | enabled, | ||
Texture * | tex, | ||
bool | bDepthReadOnly | ||
) |
See RenderSystem.
|
pure virtualinherited |
Sets the texture to bind to a given texture unit.
User processes would not normally call this direct unless rendering primitives themselves.
unit | The index of the texture unit to modify. Multitexturing hardware can support multiple units (see RenderSystemCapabilites::getNumTextureUnits) |
enabled | Boolean to turn the unit on/off |
texPtr | Pointer to the texture to use. |
bDepthReadOnly | true if the texture is also attached as a depth buffer but is read only |
Implemented in Ogre::VulkanRenderSystem, Ogre::MetalRenderSystem, Ogre::D3D11RenderSystem, Ogre::NULLRenderSystem, and Ogre::GL3PlusRenderSystem.
|
inlinevirtual |
See RenderSystem.
Implements Ogre::RenderSystem.
|
inlinevirtual |
See RenderSystem.
Implements Ogre::RenderSystem.
|
virtual |
|
inlinevirtual |
See RenderSystem.
Implements Ogre::RenderSystem.
|
virtualinherited |
Notify the rendersystem that it should adjust texture projection to be relative to a different origin.
|
pure virtualinherited |
slotStart | |
set | |
hazardousTexIdx | When hazardousTexIdx < set->mTextures.size(); it means that we need to check if set->mTextures[hazardousTexIdx] is not the same as the currently bound RTT. |
Implemented in Ogre::VulkanRenderSystem, Ogre::MetalRenderSystem, Ogre::GL3PlusRenderSystem, Ogre::D3D11RenderSystem, and Ogre::NULLRenderSystem.
|
pure virtualinherited |
|
pure virtualinherited |
|
pure virtualinherited |
|
virtualinherited |
Utility function for setting all the properties of a texture unit at once.
This method is also worth using over the individual texture unit settings because it only sets those settings which are different from the current settings for this unit, thus minimising render state changes.
|
pure virtualinherited |
|
virtual |
Part of the low level rendering interface.
Tells the RS which VAO will be bound now. (i.e. Vertex Formats, buffers being bound, etc.) You don't need to rebind if the VAO's mRenderQueueId is the same as previous call.
Implements Ogre::RenderSystem.
|
virtualinherited |
Binds a texture to a vertex, geometry, compute, tessellation hull or tessellation domain sampler.
Reimplemented in Ogre::GL3PlusRenderSystem, and Ogre::D3D11RenderSystem.
|
virtual |
See RenderSystem.
Implements Ogre::RenderSystem.
void Ogre::GLES2RenderSystem::_setViewport | ( | Viewport * | vp | ) |
See RenderSystem.
|
virtualinherited |
Sets multiple world matrices (vertex blending).
|
virtual |
See RenderSystem.
Implements Ogre::RenderSystem.
|
virtual |
May override the current VertexArrayObject!
Reimplemented from Ogre::RenderSystem.
void Ogre::GLES2RenderSystem::_switchContext | ( | GLES2Context * | context | ) |
Switch GL context, dealing with involved internal cached states too.
void Ogre::GLES2RenderSystem::_unregisterContext | ( | GLES2Context * | context | ) |
Unregister a render target->context mapping.
If the context of target is the current context, change the context to the main context so it can be destroyed safely.
|
inherited |
Called once per frame, regardless of how many active workspaces there are.
|
inlinevirtual |
See RenderSystem.
Implements Ogre::RenderSystem.
|
virtualinherited |
Add a user clipping plane.
Add a user clipping plane.
|
virtualinherited |
Adds a listener to the custom events that this render system can raise.
|
staticinherited |
Sets shared listener.
|
inlinevirtual |
See RenderSystem.
Reimplemented from Ogre::RenderSystem.
|
virtual |
Implements Ogre::RenderSystem.
|
virtual |
This marks the beginning of an event for GPU profiling.
Implements Ogre::RenderSystem.
|
virtualinherited |
When the descriptor is set to Load clear, two possible things may happen:
desc | |
anyTarget | Contains the first valid texture in mRenderPassDesc, to be used for reference (e.g. width, height, etc). Could be colour, depth, stencil, or nullptr. |
mipLevel | Mip at which anyTarget is bound |
viewportSize | |
warnIfRtvWasFlushed | See CompositorPassDef::mWarnIfRtvWasFlushed |
Reimplemented in Ogre::VulkanRenderSystem, Ogre::MetalRenderSystem, Ogre::GL3PlusRenderSystem, and Ogre::D3D11RenderSystem.
|
virtual |
Bind Gpu program parameters.
gptype | The type of program to bind the parameters to |
params | The parameters to bind |
variabilityMask | A mask of GpuParamVariability identifying which params need binding |
Implements Ogre::RenderSystem.
|
virtual |
Only binds Gpu program parameters used for passes that have more than one iteration rendering.
Implements Ogre::RenderSystem.
|
virtual |
Checks for the presense of an API-specific extension (eg. Vulkan, GL)
Reimplemented from Ogre::RenderSystem.
|
pure virtualinherited |
Immediately clears the whole frame buffer on the selected RenderPassDescriptor.
Prefer clearing using the LoadAction semantics in the RenderPassDescriptor. This function is provided for two reasons:
renderPassDesc | RenderPassDescriptor filled with LoadActions set to clear and StoreActions set to Store. |
Implemented in Ogre::VulkanRenderSystem, Ogre::MetalRenderSystem, Ogre::GL3PlusRenderSystem, Ogre::D3D11RenderSystem, and Ogre::NULLRenderSystem.
|
virtual |
|
virtual |
|
virtualinherited |
See RenderSystem::updateCompositorManager.
Reimplemented in Ogre::MetalRenderSystem.
|
virtualinherited |
See RenderSystem::updateCompositorManager.
Reimplemented in Ogre::MetalRenderSystem.
|
virtualinherited |
See RenderSystem::updateCompositorManager.
Reimplemented in Ogre::MetalRenderSystem.
|
virtualinherited |
Generates a packed data version of the passed in ColourValue suitable for use as with this RenderSystem.
colour | The colour to convert |
pDest | Pointer to location to put the result. |
GLint Ogre::GLES2RenderSystem::convertCompareFunction | ( | CompareFunction | func | ) | const |
GLint Ogre::GLES2RenderSystem::convertStencilOp | ( | StencilOperation | op, |
bool | invert = false |
||
) | const |
|
virtual |
Create an object for performing hardware occlusion queries.
Implements Ogre::RenderSystem.
|
virtual |
|
pure virtualinherited |
|
virtual |
See RenderSystem.
Implements Ogre::RenderSystem.
|
inlinevirtualinherited |
Reimplemented in Ogre::VulkanRenderSystem, Ogre::GL3PlusRenderSystem, and Ogre::D3D11RenderSystem.
|
inlinevirtualinherited |
Specifically meant to mark passes in RenderDoc.
See https://renderdoc.org/docs/how/how_annotate_capture.html
In many cases it will use the same interface as beginProfileEvent / endProfileEvent
Note: For security & performance reasons this feature is only enabled when OGRE_DEBUG_MODE >= OGRE_DEBUG_MEDIUM
Reimplemented in Ogre::VulkanRenderSystem, Ogre::GL3PlusRenderSystem, and Ogre::D3D11RenderSystem.
|
virtual |
Implements Ogre::RenderSystem.
|
virtualinherited |
Destroy a hardware occlusion query object.
|
inherited |
void Ogre::GLES2RenderSystem::destroyRenderWindow | ( | RenderWindow * | pWin | ) |
See RenderSystem.
|
virtualinherited |
Destroys a render window.
|
virtual |
void Ogre::GLES2RenderSystem::enableClipPlane | ( | ushort | index, |
bool | enable | ||
) |
See RenderSystem.
|
inlinevirtualinherited |
Required when caller will soon start analyzing barriers (e.g.
use BarrierSolver) Ogre will flush any pending resource transitions.
Otherwise BarrierSolver will see that a Resource is in a particular state or layout, then when calling executeResourceTransition, the pending resource layout will be flushed, and now the resource transition resolved by BarrierSolver will have the wrong 'old' layout
Reimplemented in Ogre::VulkanRenderSystem.
|
virtualinherited |
See RenderSystem::startGpuDebuggerFrameCapture Call this function when you're done capturing a frame.
|
virtual |
Implements Ogre::RenderSystem.
|
virtual |
Ends the currently active GPU profiling event.
Implements Ogre::RenderSystem.
|
virtualinherited |
Reimplemented in Ogre::VulkanRenderSystem, Ogre::MetalRenderSystem, Ogre::GL3PlusRenderSystem, and Ogre::D3D11RenderSystem.
|
virtualinherited |
Metal needs to delay RenderCommand creation to the last minute, because we can't issue blit operations (e.g.
buffer copies) which a lot of v1 code relies on otherwise the RenderCommand gets canceled. Even if we were to get rid of v1 operations, the user may want to hook listeners for _renderPhase02 and perform forbidden operations. Therefore it's easier to split the process done in beginRenderPassDescriptor in two steps (beginRenderPassDescriptor and executeRenderPassDescriptorDelayedActions) for Metal.
Reimplemented in Ogre::VulkanRenderSystem, and Ogre::MetalRenderSystem.
|
inlinevirtualinherited |
Reimplemented in Ogre::VulkanRenderSystem, and Ogre::GL3PlusRenderSystem.
|
staticinherited |
|
pure virtualinherited |
Implemented in Ogre::VulkanRenderSystem, Ogre::MetalRenderSystem, Ogre::D3D11RenderSystem, and Ogre::NULLRenderSystem.
|
inlineinherited |
|
inherited |
|
inlineinherited |
Gets the capabilities of the render system.
|
virtual |
See RenderSystem.
Implements Ogre::RenderSystem.
|
virtual |
See RenderSystem.
Implements Ogre::RenderSystem.
|
inlineinherited |
|
inlineinherited |
|
virtualinherited |
Gets a custom (maybe platform-specific) attribute.
name | The name of the attribute. |
pData | Pointer to memory of the right kind of structure to receive the info. |
Reimplemented in Ogre::D3D11RenderSystem.
|
inlineinherited |
|
virtualinherited |
|
virtual |
Gets the number of display monitors.
Implements Ogre::RenderSystem.
|
inlinevirtualinherited |
Returns the driver version.
|
virtual |
See RenderSystem.
Implements Ogre::RenderSystem.
|
virtual |
See RenderSystem.
Implements Ogre::RenderSystem.
|
inline |
|
inherited |
Returns the global instance vertex buffer.
|
inherited |
Gets vertex declaration for the global vertex buffer for the global instancing.
|
inherited |
Gets the global number of instances.
|
inlinevirtual |
Returns the horizontal texel offset value required for mapping texel origins to pixel origins in this rendersystem.
Implements Ogre::RenderSystem.
|
inlineinherited |
+Y is downwards in NDC (Normalized Device Coordinates). Only Vulkan has this problem.
|
virtualinherited |
Indicates whether or not the vertex windings set will be inverted for the current render (e.g.
reflections)
|
inlineinherited |
|
inlinevirtual |
Gets the maximum (farthest) depth value to be used when rendering using identity transforms.
Implements Ogre::RenderSystem.
|
inherited |
|
inlinevirtual |
Gets the minimum (closest) depth value to be used when rendering using identity transforms.
Implements Ogre::RenderSystem.
|
inlineinherited |
Get a pointer to the current capabilities being used by the RenderSystem.
|
virtual |
See RenderSystem.
Implements Ogre::RenderSystem.
|
inlineinherited |
Gets the native shading language version for this render system.
Formatted so that it can be used within a shading program. For example, OpenGL 3.2 would return 150, while 3.3 would return 330
|
virtualinherited |
Number of priority config options in RenderSystem::getPriorityConfigOption.
Therefore a proper loop would call getNumPriorityConfigOptions on every iteration:
Reimplemented in Ogre::VulkanRenderSystem, Ogre::GL3PlusRenderSystem, and Ogre::D3D11RenderSystem.
|
virtualinherited |
Some options depend on other options.
Therefore it's best to call RenderSystem::setConfigOption in order
idx | Value must be in range [0; getNumPriorityConfigOptions) |
Options must be set in ascending order, i.e. idx = 0 must be called before idx = 1
Reimplemented in Ogre::VulkanRenderSystem, Ogre::GL3PlusRenderSystem, and Ogre::D3D11RenderSystem.
|
inlineinherited |
Returns the RenderDoc API handle in case you want to do more advanced functionality than what we expose.
Note we may return nullptr if RenderDoc was not yet loaded.
Call RenderSystem::loadRenderDocApi first if you wish the returned ptr to not be null (it may still be null if we fail to load RenderDoc)
|
inlinevirtualinherited |
Gets a list of the rendersystem specific events that this rendersystem can raise.
|
inlinevirtualinherited |
OpenGL depth is in range [-1;1] so it returns 2.0f; D3D11 & Metal are in range [0;1] so it returns 1.0f;.
Note OpenGL may behave like D3D11, and thus we'll return 1.0f too. This is decided at runtime, not at compile time.
Reimplemented in Ogre::GL3PlusRenderSystem.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlinevirtual |
Returns the vertical texel offset value required for mapping texel origins to pixel origins in this rendersystem.
Implements Ogre::RenderSystem.
|
inherited |
Returns true if the renderer will try to use W-buffers when available.
|
inlinevirtual |
See RenderSystem.
Implements Ogre::RenderSystem.
bool Ogre::GLES2RenderSystem::hasMinGLVersion | ( | int | major, |
int | minor | ||
) | const |
|
virtual |
Implements Ogre::RenderSystem.
void Ogre::GLES2RenderSystem::initialiseContext | ( | RenderWindow * | primary | ) |
void Ogre::GLES2RenderSystem::initialiseFromRenderSystemCapabilities | ( | RenderSystemCapabilities * | caps, |
RenderTarget * | primary | ||
) |
See RenderSystem.
|
virtualinherited |
Returns whether or not a Gpu program of the given type is currently bound.
|
inlineinherited |
|
virtualinherited |
Returns true if 'a' and 'b' internally map to the same layout and should be considered equivalent for a given texture.
bIsDebugCheck | When true, we're calling this as a consistency check (e.g. asserts if layouts changed externally outside the BarrierSolver). Non-explicit APIs may return too many false negatives triggering the assert, thus this flag prevents false crashes |
Reimplemented in Ogre::VulkanRenderSystem.
|
inlinevirtualinherited |
|
inherited |
Explicitly loads RenderDoc.
It is not necessary to call this function unless you want to use RenderSystem::getRenderDocApi before we are required to load RenderDoc.
|
virtual |
Marks an instantaneous event for graphics profilers.
This is equivalent to calling
Implements Ogre::RenderSystem.
Ogre::GLES2RenderSystem::OGRE_MUTEX | ( | mThreadInitMutex | ) |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
operator new, with debug line info
|
inlineinherited |
placement operator new
|
inlineinherited |
|
inlineinherited |
array operator new, with debug line info
|
virtual |
Implements Ogre::RenderSystem.
|
virtual |
Tell the rendersystem to perform any prep tasks it needs to directly before other threads which might access the rendering API are registered.
Implements Ogre::RenderSystem.
|
virtual |
|
virtual |
|
inherited |
Queues the binding of an UAV to the binding point/slot.
It won't actually take effect until you flush the UAVs or set another RTT.
OpenGL however, does not make this distinction. Hence once we switch back to 3D rendering, we need to restore UAVs set via queueBindUAV.
|
virtual |
Register the an additional thread which may make calls to rendersystem-related objects.
Implements Ogre::RenderSystem.
|
virtual |
See RenderSystem.
Implements Ogre::RenderSystem.
|
virtualinherited |
Remove a listener to the custom events that this render system can raise.
|
staticinherited |
Remove shared listener to the custom events that this render system can raise.
|
virtualinherited |
Clears the user clipping region.
|
staticinherited |
Reverts the compare order e.g.
greater_equal becomes less_equal Used by reverse depth
depthFunc |
See RenderSystem.
|
virtualinherited |
Sets the user clipping region.
|
inlinevirtual |
Internal method used to set the underlying clip planes when needed.
Implements Ogre::RenderSystem.
See RenderSystem.
Implements Ogre::RenderSystem.
|
inlinevirtualinherited |
set the current multi pass count value.
This must be set prior to calling _render() if multiple renderings of the same pass state are required.
count | Number of times to render the current state. |
|
inherited |
Instructs the RenderSystem to compile shaders without optimizations and with debug information, for easier debugging on APIs that support it.
Default is true if OGRE_DEBUG_MODE >= OGRE_DEBUG_HIGH, else false
This setting takes effect for shaders compiled afterwards. Already compiled shaders won't change unless you manually rebuild them.
It is highly recommended you disable the Microcode cache before changing the default, or else debug shaders may contaminate your cache, or alternatively a shader from the cache may be used which may have been compiled with a different setting.
|
inlinevirtualinherited |
Tell the render system whether to derive a depth bias on its own based on the values passed to it in setCurrentPassIterationCount.
The depth bias set will be baseValue + iteration * multiplier
derive | True to tell the RS to derive this automatically |
baseValue | The base value to which the multiplier should be added |
multiplier | The amount of depth bias to apply per iteration |
slopeScale | The constant slope scale bias for completeness |
|
inlinevirtualinherited |
Sets the colour buffer that the render system will to draw.
If the render system implementation or configuration does not support a particular value, then false will be returned and the current colour buffer value will not be modified.
colourBuffer | Specifies the colour buffer that will be drawn into. |
Reimplemented in Ogre::D3D11RenderSystem.
|
inherited |
Sets the global instance vertex buffer.
|
inherited |
Sets vertex declaration for the global vertex buffer for the global instancing.
|
inherited |
Sets the global number of instances.
|
inherited |
Sets whether or not vertex windings set should be inverted; this can be important for rendering reflections.
|
inherited |
|
virtual |
See RenderSystem.
Reimplemented from Ogre::RenderSystem.
|
inherited |
In Direct3D11, UAV & RenderTargets share the same slots.
Because of this, we enforce the same behavior on all RenderSystems. An unfortunate consequence is that if you attach an MRT consisting of 3 RTs; the UAV needs to set at slot 3; not slot 0. This setting lets you tell Ogre the starting slot; so queueBindUAVs( descSet ) goes from slot 3 onwards if you call setUavStartingSlot( 3 )
startingSlot | Default value: 1. |
|
inherited |
Sets whether or not W-buffers are enabled if they are available for this renderer.
enabled | If true and the renderer supports them W-buffers will be used. If false W-buffers will not be used even if available. W-buffers are enabled by default for 16bit depth buffers and disabled for all other depths. |
|
virtual |
See RenderSystem.
Reimplemented from Ogre::RenderSystem.
|
virtualinherited |
Programmatically performs a GPU capture when attached to a GPU debugger like RenderDoc or Metal Graphics Debugger.
You must call RenderSystem::endGpuDebuggerFrameCapture
window | Can be NULL for automatic capture. |
See pRENDERDOC_StartFrameCapture's documentation
True if we believe the frame capture started. Note a capture may still fail regardless due to other more technical reasons, as rendering APIs are complex.
|
virtual |
Unregister an additional thread which may make calls to rendersystem-related objects.
Implements Ogre::RenderSystem.
|
virtualinherited |
This gives the renderer a chance to perform the compositor update in a special way.
When the render system is ready to perform the actual update it should just compositorManager->_updateImplementation.
Reimplemented in Ogre::MetalRenderSystem.
|
virtualinherited |
Force the render system to use the special capabilities.
Can only be called before the render system has been fully initializer (before createWindow is called)
capabilities | has to be a subset of the real capabilities and the caller is responsible for deallocating capabilities. |
|
virtual |
See RenderSystem.
Implements Ogre::RenderSystem.
|
inlinevirtualinherited |
Some render systems have moments when GPU device is temporarily unavailable, for example when D3D11 device is lost, or when iOS app is in background, etc.
Reimplemented in Ogre::D3D11RenderSystem.
|
virtualinherited |
Returns supported sample description for requested FSAA mode, with graceful downgrading.
Reimplemented in Ogre::VulkanRenderSystem, Ogre::MetalRenderSystem, and Ogre::D3D11RenderSystem.
|
friend |