mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-07-28 18:31:40 +00:00
Don't have two overloads that are ambiguous on pointer param
This commit is contained in:
@@ -202,13 +202,13 @@ void *VulkanDebugManager::GPUBuffer::Map(const VkLayerDispatchTable *vt, VkDevic
|
||||
return ptr;
|
||||
}
|
||||
|
||||
void *VulkanDebugManager::GPUBuffer::Map(const VkLayerDispatchTable *vt, VkDevice dev, VkDeviceSize *bindoffset, VkDeviceSize usedsize)
|
||||
void *VulkanDebugManager::GPUBuffer::Map(const VkLayerDispatchTable *vt, VkDevice dev, VkDeviceSize &bindoffset, VkDeviceSize usedsize)
|
||||
{
|
||||
uint32_t offs = 0;
|
||||
|
||||
void *ret = Map(vt, dev, &offs, usedsize);
|
||||
|
||||
if(bindoffset) *bindoffset = offs;
|
||||
bindoffset = offs;
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
@@ -81,8 +81,8 @@ class VulkanDebugManager
|
||||
|
||||
void FillDescriptor(VkDescriptorInfo &desc);
|
||||
|
||||
void *Map(const VkLayerDispatchTable *vt, VkDevice dev, VkDeviceSize *bindoffset, VkDeviceSize usedsize = 0);
|
||||
void *Map(const VkLayerDispatchTable *vt, VkDevice dev, uint32_t *bindoffset, VkDeviceSize usedsize = 0);
|
||||
void *Map(const VkLayerDispatchTable *vt, VkDevice dev, VkDeviceSize &bindoffset, VkDeviceSize usedsize = 0);
|
||||
void *Map(const VkLayerDispatchTable *vt, VkDevice dev, uint32_t *bindoffset = NULL, VkDeviceSize usedsize = 0);
|
||||
void Unmap(const VkLayerDispatchTable *vt, VkDevice dev);
|
||||
|
||||
VkDeviceSize sz;
|
||||
|
||||
@@ -1566,7 +1566,7 @@ void VulkanReplay::RenderMesh(uint32_t frameID, uint32_t eventID, const vector<M
|
||||
};
|
||||
|
||||
VkDeviceSize vboffs = 0;
|
||||
Vec4f *ptr = (Vec4f *)GetDebugManager()->m_MeshBBoxVB.Map(vt, dev, &vboffs);
|
||||
Vec4f *ptr = (Vec4f *)GetDebugManager()->m_MeshBBoxVB.Map(vt, dev, vboffs);
|
||||
|
||||
memcpy(ptr, bbox, sizeof(bbox));
|
||||
|
||||
@@ -2091,7 +2091,7 @@ void VulkanReplay::RenderMesh(uint32_t frameID, uint32_t eventID, const vector<M
|
||||
if(activePrim.size() >= primSize)
|
||||
{
|
||||
VkDeviceSize vboffs = 0;
|
||||
Vec4f *ptr = (Vec4f *)GetDebugManager()->m_MeshBBoxVB.Map(vt, dev, &vboffs, sizeof(Vec4f)*primSize);
|
||||
Vec4f *ptr = (Vec4f *)GetDebugManager()->m_MeshBBoxVB.Map(vt, dev, vboffs, sizeof(Vec4f)*primSize);
|
||||
|
||||
memcpy(ptr, &activePrim[0], sizeof(Vec4f)*primSize);
|
||||
|
||||
@@ -2114,7 +2114,7 @@ void VulkanReplay::RenderMesh(uint32_t frameID, uint32_t eventID, const vector<M
|
||||
if(adjacentPrimVertices.size() >= primSize && (adjacentPrimVertices.size() % primSize) == 0)
|
||||
{
|
||||
VkDeviceSize vboffs = 0;
|
||||
Vec4f *ptr = (Vec4f *)GetDebugManager()->m_MeshBBoxVB.Map(vt, dev, &vboffs, sizeof(Vec4f)*adjacentPrimVertices.size());
|
||||
Vec4f *ptr = (Vec4f *)GetDebugManager()->m_MeshBBoxVB.Map(vt, dev, vboffs, sizeof(Vec4f)*adjacentPrimVertices.size());
|
||||
|
||||
memcpy(ptr, &adjacentPrimVertices[0], sizeof(Vec4f)*adjacentPrimVertices.size());
|
||||
|
||||
@@ -2159,7 +2159,7 @@ void VulkanReplay::RenderMesh(uint32_t frameID, uint32_t eventID, const vector<M
|
||||
|
||||
{
|
||||
VkDeviceSize vboffs = 0;
|
||||
Vec4f *ptr = (Vec4f *)GetDebugManager()->m_MeshBBoxVB.Map(vt, dev, &vboffs, sizeof(vertSprite));
|
||||
Vec4f *ptr = (Vec4f *)GetDebugManager()->m_MeshBBoxVB.Map(vt, dev, vboffs, sizeof(vertSprite));
|
||||
|
||||
memcpy(ptr, &vertSprite[0], sizeof(vertSprite));
|
||||
|
||||
@@ -2182,7 +2182,7 @@ void VulkanReplay::RenderMesh(uint32_t frameID, uint32_t eventID, const vector<M
|
||||
if(!inactiveVertices.empty())
|
||||
{
|
||||
VkDeviceSize vboffs = 0;
|
||||
FloatVector *ptr = (FloatVector *)GetDebugManager()->m_MeshBBoxVB.Map(vt, dev, &vboffs, sizeof(vertSprite));
|
||||
FloatVector *ptr = (FloatVector *)GetDebugManager()->m_MeshBBoxVB.Map(vt, dev, vboffs, sizeof(vertSprite));
|
||||
|
||||
for(size_t i=0; i < inactiveVertices.size(); i++)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user