Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Attributes | List of all members
gte::GL4StructuredBuffer Class Reference

#include <GteGL4StructuredBuffer.h>

Inheritance diagram for gte::GL4StructuredBuffer:
Inheritance graph
[legend]

Public Member Functions

void AttachToUnit (GLint shaderStorageBufferUnit)
 
bool CopyCounterValueFromBuffer (GL4Buffer *sourceBuffer, GLint offset)
 
bool CopyCounterValueToBuffer (GL4Buffer *targetBuffer, GLint offset)
 
virtual bool CopyGpuToCpu () override
 
bool GetNumActiveElements ()
 
StructuredBufferGetStructuredBuffer () const
 
 GL4StructuredBuffer (StructuredBuffer const *cbuffer)
 
bool SetNumActiveElements ()
 
- Public Member Functions inherited from gte::GL4Buffer
virtual bool CopyCpuToGpu ()
 
BufferGetBuffer () const
 
GLenum GetType () const
 
GLenum GetUsage () const
 
virtual bool Update ()
 
- Public Member Functions inherited from gte::GL4Resource
virtual void CopyGpuToGpu (GL4Resource *target)
 
ResourceGetResource () const
 
voidMapForWrite (GLenum target)
 
void Unmap (GLenum target)
 
- Public Member Functions inherited from gte::GL4GraphicsObject
GLuint GetGLHandle () const
 
virtual void SetName (std::string const &name) override
 
- Public Member Functions inherited from gte::GEObject
GraphicsObjectGetGraphicsObject () const
 
std::string const & GetName () const
 
virtual ~GEObject ()
 

Static Public Member Functions

static std::shared_ptr< GEObjectCreate (void *unused, GraphicsObject const *object)
 

Protected Member Functions

virtual void Initialize () override
 
- Protected Member Functions inherited from gte::GL4Buffer
 GL4Buffer (Buffer const *buffer, GLenum type)
 
virtual ~GL4Buffer ()
 
- Protected Member Functions inherited from gte::GL4Resource
 GL4Resource (Resource const *gtResource)
 
bool PreparedForCopy (GLenum access) const
 
- Protected Member Functions inherited from gte::GL4GraphicsObject
 GL4GraphicsObject (GraphicsObject const *gtObject)
 
- Protected Member Functions inherited from gte::GEObject
 GEObject (GraphicsObject const *gtObject)
 

Private Attributes

GLint mCounterOffset
 

Additional Inherited Members

- Protected Attributes inherited from gte::GL4Buffer
GLenum mType
 
GLenum mUsage
 
- Protected Attributes inherited from gte::GL4GraphicsObject
GLuint mGLHandle
 
- Protected Attributes inherited from gte::GEObject
GraphicsObjectmGTObject
 
std::string mName
 

Detailed Description

Definition at line 16 of file GteGL4StructuredBuffer.h.

Constructor & Destructor Documentation

GL4StructuredBuffer::GL4StructuredBuffer ( StructuredBuffer const *  cbuffer)

Definition at line 14 of file GteGL4StructuredBuffer.cpp.

Member Function Documentation

void GL4StructuredBuffer::AttachToUnit ( GLint  shaderStorageBufferUnit)

Definition at line 34 of file GteGL4StructuredBuffer.cpp.

bool GL4StructuredBuffer::CopyCounterValueFromBuffer ( GL4Buffer sourceBuffer,
GLint  offset 
)

Definition at line 65 of file GteGL4StructuredBuffer.cpp.

bool GL4StructuredBuffer::CopyCounterValueToBuffer ( GL4Buffer targetBuffer,
GLint  offset 
)

Definition at line 46 of file GteGL4StructuredBuffer.cpp.

bool GL4StructuredBuffer::CopyGpuToCpu ( )
overridevirtual

Reimplemented from gte::GL4Buffer.

Definition at line 126 of file GteGL4StructuredBuffer.cpp.

std::shared_ptr< GEObject > GL4StructuredBuffer::Create ( void unused,
GraphicsObject const *  object 
)
static

Definition at line 22 of file GteGL4StructuredBuffer.cpp.

bool GL4StructuredBuffer::GetNumActiveElements ( )

Definition at line 84 of file GteGL4StructuredBuffer.cpp.

StructuredBuffer * gte::GL4StructuredBuffer::GetStructuredBuffer ( ) const
inline

Definition at line 59 of file GteGL4StructuredBuffer.h.

void GL4StructuredBuffer::Initialize ( )
overrideprotectedvirtual

Reimplemented from gte::GL4Buffer.

Definition at line 143 of file GteGL4StructuredBuffer.cpp.

bool GL4StructuredBuffer::SetNumActiveElements ( )

Definition at line 105 of file GteGL4StructuredBuffer.cpp.

Member Data Documentation

GLint gte::GL4StructuredBuffer::mCounterOffset
private

Definition at line 56 of file GteGL4StructuredBuffer.h.


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


geometric_tools_engine
Author(s): Yijiang Huang
autogenerated on Thu Jul 18 2019 04:00:06