UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
OpenGLShaders.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3/*=============================================================================
4 OpenGLShaders.h: OpenGL shader RHI declaration.
5=============================================================================*/
6
7#pragma once
8
9#include "CoreMinimal.h"
10#include "OpenGLDrv.h"
11
19
34
41
55
56
57// make some anon ns functions available to platform extensions
58extern "C" void PE_AppendCString(TArray<ANSICHAR> & Dest, const ANSICHAR * Source);
59extern "C" void PE_ReplaceCString(TArray<ANSICHAR> & Dest, const ANSICHAR * Source, const ANSICHAR * Replacement);
60
FPlatformTypes::ANSICHAR ANSICHAR
An ANSI character. Normally a signed type.
Definition Platform.h:1131
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
void OPENGLDRV_API GLSLToDeviceCompatibleGLSL(FAnsiCharArray &GlslCodeOriginal, const FString &ShaderName, GLenum TypeEnum, const FOpenGLShaderDeviceCapabilities &Capabilities, FAnsiCharArray &GlslCode)
Definition OpenGLShaders.cpp:801
EOpenGLShaderTargetPlatform
Definition OpenGLShaders.h:13
@ OGLSTP_iOS
Definition OpenGLShaders.h:17
@ OGLSTP_Unknown
Definition OpenGLShaders.h:14
@ OGLSTP_Android
Definition OpenGLShaders.h:16
@ OGLSTP_Desktop
Definition OpenGLShaders.h:15
void PE_ReplaceCString(TArray< ANSICHAR > &Dest, const ANSICHAR *Source, const ANSICHAR *Replacement)
Definition OpenGLShaders.cpp:658
void PE_AppendCString(TArray< ANSICHAR > &Dest, const ANSICHAR *Source)
Definition OpenGLShaders.cpp:653
void OPENGLDRV_API GetCurrentOpenGLShaderDeviceCapabilities(FOpenGLShaderDeviceCapabilities &Capabilities)
Definition OpenGLShaders.cpp:769
EShaderPlatform
Definition RHIShaderPlatform.h:11
Definition OpenGLShaders.h:24
GLint MaxVaryingVectors
Definition OpenGLShaders.h:29
EShaderPlatform MaxRHIShaderPlatform
Definition OpenGLShaders.h:26
EOpenGLShaderTargetPlatform TargetPlatform
Definition OpenGLShaders.h:25
bool bRequiresReadOnlyBuffersWorkaround
Definition OpenGLShaders.h:31
bool bRequiresPreciseQualifierWorkaround
Definition OpenGLShaders.h:32
bool bSupportsShaderFramebufferFetch
Definition OpenGLShaders.h:27
bool bRequiresDisabledEarlyFragmentTests
Definition OpenGLShaders.h:30
bool bRequiresARMShaderFramebufferFetchDepthStencilUndef
Definition OpenGLShaders.h:28