FOpenGLShaderResourceView

Windows
MacOS
Linux

Inheritance Hierarchy

FRefCountedObject

FOpenGLShaderResourceView

Syntax

class FOpenGLShaderResourceView : public FRefCountedObject

Variables

Name Description

Public variable

uint8

 

Format

Public variable

int32

 

LimitMip

Public variable

uint64

 

ModificationVersion

Protected variable

FOpenGLDynamicR...

 

OpenGLRHI

Protected variable

bool

 

OwnsResource

Public variable

GLuint

 

Resource

In OpenGL 3.2, the only view that actually works is a Buffer kind of view from D3D10, and it's mapped to OpenGL's buffer texture.

Public variable

GLenum

 

Target

Public variable

FTexture2DRHIRe...

 

Texture2D

Needed on GL <= 4.2 to copy stencil data out of combined depth-stencil surfaces.

Public variable

FVertexBufferRH...

 

VertexBuffer

Needed on OS X to force a rebind of the texture buffer to the texture name to workaround radr://18379338

Constructors

Name Description

Public function

FOpenGLShaderResourceView

(
    FOpenGLDynamicRHI* InOpenGLRHI,
    GLuint InResource,
    GLenum InTarget
)

Public function

FOpenGLShaderResourceView

(
    FOpenGLDynamicRHI* InOpenGLRHI,
    GLuint InResource,
    GLenum InTarget,
    FVertexBufferRHIParamRef InVertexBu...,
    uint8 InFormat
)

Public function

FOpenGLShaderResourceView

(
    FOpenGLDynamicRHI* InOpenGLRHI,
    GLuint InResource,
    GLenum InTarget,
    GLuint Mip,
    bool InOwnsResource
)

Destructors

Name Description

Public function Virtual

~FOpenGLShaderResourceView()

Functions

Name Description

Public function

void

 

SetGLParameters

(
    GLuint InResource,
    GLenum InTarget
)

References

Module

OpenGLDrv

Header

Runtime/OpenGLDrv/Public/OpenGLResources.h

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback