|
| | IndexBufferPacked (size_t internalBufferStartBytes, size_t numElements, uint32 bytesPerElement, uint32 numElementsPadding, BufferType bufferType, void *initialData, bool keepAsShadow, VaoManager *vaoManager, BufferInterface *bufferInterface) |
| |
| size_t | _getFinalBufferStart (void) const |
| |
| size_t | _getInternalBufferStart (void) const |
| |
| size_t | _getInternalNumElements (void) const |
| |
| size_t | _getInternalTotalSizeBytes (void) const |
| |
| void | _setBufferInterface (BufferInterface *bufferInterface) |
| | For internal use.
|
| |
| void | _setShadowCopy (void *copy) |
| | This will not delete the existing shadow copy so it can be used for other purposes if it is not needed call OGRE_FREE_SIMD( m->getShadowCopy(), MEMCATEGORY_GEOMETRY ) before calling this function.
|
| |
| void | advanceFrame (void) |
| |
| void | copyTo (BufferPacked *dstBuffer, size_t dstElemStart=0, size_t srcElemStart=0, size_t srcNumElems=std::numeric_limits< size_t >::max()) |
| | Copies the contents of this buffer to another, using GPU -> GPU transfers.
|
| |
| BufferInterface * | getBufferInterface (void) const |
| |
| virtual BufferPackedTypes | getBufferPackedType (void) const |
| | Useful to query which one is the derived class.
|
| |
| BufferType | getBufferType (void) const |
| |
| size_t | getBytesPerElement (void) const |
| |
| IndexType | getIndexType (void) const |
| |
| MappingState | getMappingState (void) const |
| | Returns the mapping state.
|
| |
| size_t | getNumElements (void) const |
| |
| virtual BufferPacked * | getOriginalBufferType (void) |
| | If this buffer has been reinterpreted from an UavBufferPacked, returns the original version, otherwise returns 'this'.
|
| |
| const void * | getShadowCopy (void) const |
| |
| size_t | getTotalSizeBytes (void) const |
| |
| bool | isCurrentlyMapped (void) const |
| | Returns whether the buffer is currently mapped.
|
| |
| virtual bool | isTextureGpu (void) const |
| |
| void *RESTRICT_ALIAS_RETURN | map (size_t elementStart, size_t elementCount, bool bAdvanceFrame=true) |
| | Maps the specified region to a pointer the CPU can access.
|
| |
| 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
|
| |
| void * | operator new (size_t sz, void *ptr) |
| | placement operator new
|
| |
| 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
|
| |
| AsyncTicketPtr | readRequest (size_t elementStart, size_t elementCount) |
| | Async data read request.
|
| |
| void | regressFrame (void) |
| | Performs the opposite of.
|
| |
| void | unmap (UnmapOptions unmapOption, size_t flushStartElem=0, size_t flushSizeElem=0) |
| | Unmaps or flushes the region mapped with.
|
| |
| virtual void | upload (const void *data, size_t elementStart, size_t elementCount) |
| | Sends the provided data to the GPU.
|
| |
Copies the contents of this buffer to another, using GPU -> GPU transfers.
In simple terms it is similar to doing: memcpy( dstBuffer + dstElemStart, this + srcElemStart, srcNumElems );
If dst has a shadow buffer, then src must have it too.
- Parameters
-
| dstBuffer | Buffer to copy to. Must be of type BT_DEFAULT |
| dstElemStart | The offset for dstBuffer. It must be in the unit of measure of dstBuffer. e.g. actual offset in bytes is dstElemStart * dstBuffer->getBytesPerElement() |
| srcElemStart | The offset of this buffer to start from |
| srcNumElems | The number of elements to copy, in units of measure of srcBuffer. When this value is out of bounds, it gets clamped. See remarks. |