stdgpu: createHostArray
stdgpu Latest
Efficient STL-like Data Structures on the GPU
|
|
◆ createHostArray()
Creates a new host 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 host array if count > 0, nullptr otherwise
- Postcondition
- get_dynamic_memory_type(result) == dynamic_memory_type::device if count > 0
|