stdgpu: createDeviceArray
stdgpu Latest
Efficient STL-like Data Structures on the GPU
|
|
◆ createDeviceArray()
Creates a new device array and initializes (fills) it with the given default value.
- Template Parameters
-
- Parameters
-
[in] | count | The number of elements of the new array |
[in] | default_value | A default value, that should be stored in every array entry |
- Returns
- The allocated device array if count > 0, nullptr otherwise
- Postcondition
- get_dynamic_memory_type(result) == dynamic_memory_type::device if count > 0
|