MCPcopy Create free account
hub / github.com/NVIDIA/cuda-samples / GpuArray

Method GpuArray

cpp/5_Domain_Specific/smokeParticles/GpuArray.h:99–113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97
98template <class T>
99GpuArray<T>::GpuArray()
100 : m_size(0)
101 , m_hptr(0)
102 , m_currentRead(0)
103 , m_currentWrite(0)
104{
105 m_dptr[0] = 0;
106 m_dptr[1] = 0;
107
108 m_vbo[0] = 0;
109 m_vbo[1] = 0;
110
111 m_cuda_vbo_resource[0] = NULL;
112 m_cuda_vbo_resource[1] = NULL;
113}
114
115template <class T> GpuArray<T>::~GpuArray() { free(); }
116

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected