File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -102,14 +102,14 @@ class IDeviceMemoryAllocation : public virtual core::IReferenceCounted
102
102
size_t offset = 0ull ;
103
103
size_t length = 0ull ;
104
104
};
105
- inline bool map (const MemoryRange& range, const core::bitflag<E_MAPPING_CPU_ACCESS_FLAGS> accessHint=IDeviceMemoryAllocation::EMCAF_READ_AND_WRITE)
105
+ inline void * map (const MemoryRange& range, const core::bitflag<E_MAPPING_CPU_ACCESS_FLAGS> accessHint=IDeviceMemoryAllocation::EMCAF_READ_AND_WRITE)
106
106
{
107
107
if (isCurrentlyMapped ())
108
- return false ;
108
+ return nullptr ;
109
109
if (accessHint.hasFlags (EMCAF_READ) && !m_memoryPropertyFlags.hasFlags (EMPF_HOST_READABLE_BIT))
110
- return false ;
110
+ return nullptr ;
111
111
if (accessHint.hasFlags (EMCAF_WRITE) && !m_memoryPropertyFlags.hasFlags (EMPF_HOST_WRITABLE_BIT))
112
- return false ;
112
+ return nullptr ;
113
113
m_mappedPtr = reinterpret_cast <uint8_t *>(map_impl (range,accessHint));
114
114
if (m_mappedPtr)
115
115
m_mappedPtr -= range.offset ;
You can’t perform that action at this time.
0 commit comments