PeriDyno 0.8.2
Public Member Functions | Private Attributes | List of all members
gl::CudaBuffer Class Reference

#include <CudaBuffer.h>

Inheritance diagram for gl::CudaBuffer:
Inheritance graph
[legend]
Collaboration diagram for gl::CudaBuffer:
Collaboration graph
[legend]

Public Member Functions

virtual void release () override
 
virtual void allocate (int size)
 for cuda More...
 
void loadCuda (void *src, int size)
 
- Public Member Functions inherited from gl::Buffer
virtual void create (int target, int usage)
 
virtual void release () override
 
void bind ()
 
void unbind ()
 
virtual void allocate (int size)
 
virtual void load (void *data, int size, int offset=0)
 
void bindBufferBase (int idx)
 

Private Attributes

cudaGraphicsResource * resource = 0
 

Additional Inherited Members

- Public Attributes inherited from gl::Object
unsigned int id = 0xFFFFFFFF
 
- Protected Member Functions inherited from gl::Object
virtual void create ()=0
 
virtual void release ()=0
 
virtual bool isValid () const
 
 Object ()=default
 
virtual ~Object ()=default
 
 Object (const Object &)=delete
 
Objectoperator= (const Object &)=delete
 
- Protected Attributes inherited from gl::Buffer
int target = -1
 
int usage = -1
 
int size = -1
 

Detailed Description

Definition at line 23 of file CudaBuffer.h.

Member Function Documentation

◆ allocate()

void gl::CudaBuffer::allocate ( int  size)
virtual

for cuda

Reimplemented from gl::Buffer.

Definition at line 12 of file CudaBuffer.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ loadCuda()

void gl::CudaBuffer::loadCuda ( void *  src,
int  size 
)

Definition at line 38 of file CudaBuffer.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ release()

void gl::CudaBuffer::release ( )
overridevirtual

Reimplemented from gl::Buffer.

Definition at line 28 of file CudaBuffer.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ resource

cudaGraphicsResource* gl::CudaBuffer::resource = 0
private

Definition at line 34 of file CudaBuffer.h.


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