この参照ページは、次の概要トピックと関連付けられています。#include <MPxGPUDeformer.h>
Store GPU Representation of a data buffer.
MGPUDeformerBuffer is a simple buffer structure to group data related to a single GPU buffer.
Public Member Functions | |
| MGPUDeformerBuffer (const MUniqueString &name, bool readOnly, unsigned int elementSizeInBytes, unsigned int elementCount, unsigned int capacityInBytes, const MAutoCLMem &buffer, const MAutoCLEvent &event) | |
| Constructs an MGPUDeformerBuffer for an existing MAutoCLMem. More... | |
| MGPUDeformerBuffer () | |
| Constructs an empty MGPUDeformerBuffer which cannot be used. | |
| ~MGPUDeformerBuffer () | |
| Destructor. | |
| bool | isValid () const |
| MGPUDeformerBuffer | ( | const MUniqueString & | name, |
| bool | readOnly, | ||
| unsigned int | elementSizeInBytes, | ||
| unsigned int | elementCount, | ||
| unsigned int | capacityInBytes, | ||
| const MAutoCLMem & | buffer, | ||
| const MAutoCLEvent & | event | ||
| ) |
Constructs an MGPUDeformerBuffer for an existing MAutoCLMem.
capacityInBytes must be less than or equal to the actual size of the cl_mem held by buffer. elementSizeInBytes() * elementCount must be less than or equal to capacityInBytes.
| [in] | name | The name of the buffer. |
| [in] | readOnly | True if the MGPUDeformerBuffer is a read only buffer. |
| [in] | elementSizeInBytes | The size of each element in the buffer in bytes. |
| [in] | elementCount | The number of elements stored in the buffer. |
| [in] | capacityInBytes | The capacity of the cl_mem in bytes. |
| [in] | buffer | The OpenCL memory resource. |
| [in] | event | The data is buffer is safe to read when event holds a NULL event or event is complete. |
| bool isValid | ( | ) | const |