fixed name of color.

This commit is contained in:
hyzboy 2023-07-29 01:54:01 +08:00
parent f51c7c6964
commit 95c67ba857
No known key found for this signature in database
GPG Key ID: 067EE4525D4FB6D3
3 changed files with 7 additions and 7 deletions

View File

@ -64,7 +64,7 @@ public:
{ {
if(index>=cv_count)return; if(index>=cv_count)return;
hgl_cpy(clear_values[index].stop_color.float32,cc.rgba,4); hgl_cpy(clear_values[index].color.float32,cc.rgba,4);
} }
void SetClearDepthStencil(uint32_t index,float d=1.0f,float s=0) void SetClearDepthStencil(uint32_t index,float d=1.0f,float s=0)

View File

@ -38,7 +38,7 @@ void DebugMaker::Begin(VkCommandBuffer cmdbuffer, const char * pMarkerName, cons
VkDebugMarkerMarkerInfoEXT markerInfo = {}; VkDebugMarkerMarkerInfoEXT markerInfo = {};
markerInfo.sType = VK_STRUCTURE_TYPE_DEBUG_MARKER_MARKER_INFO_EXT; markerInfo.sType = VK_STRUCTURE_TYPE_DEBUG_MARKER_MARKER_INFO_EXT;
memcpy(markerInfo.stop_color, &color, sizeof(float) * 4); memcpy(markerInfo.color, &color, sizeof(float) * 4);
markerInfo.pMarkerName = pMarkerName; markerInfo.pMarkerName = pMarkerName;
dmf.Begin(cmdbuffer, &markerInfo); dmf.Begin(cmdbuffer, &markerInfo);
@ -51,7 +51,7 @@ void DebugMaker::Insert(VkCommandBuffer cmdbuffer, const char *markerName, const
VkDebugMarkerMarkerInfoEXT markerInfo = {}; VkDebugMarkerMarkerInfoEXT markerInfo = {};
markerInfo.sType = VK_STRUCTURE_TYPE_DEBUG_MARKER_MARKER_INFO_EXT; markerInfo.sType = VK_STRUCTURE_TYPE_DEBUG_MARKER_MARKER_INFO_EXT;
memcpy(markerInfo.stop_color, &color, sizeof(float) * 4); memcpy(markerInfo.color, &color, sizeof(float) * 4);
markerInfo.pMarkerName = markerName; markerInfo.pMarkerName = markerName;
dmf.Insert(cmdbuffer, &markerInfo); dmf.Insert(cmdbuffer, &markerInfo);

View File

@ -40,10 +40,10 @@ struct DebugUtilsLabel:public VkDebugUtilsLabelEXT
sType=VK_STRUCTURE_TYPE_DEBUG_UTILS_LABEL_EXT; sType=VK_STRUCTURE_TYPE_DEBUG_UTILS_LABEL_EXT;
pNext=nullptr; pNext=nullptr;
pLabelName=n; pLabelName=n;
stop_color[0]=c.r; color[0]=c.r;
stop_color[1]=c.g; color[1]=c.g;
stop_color[2]=c.b; color[2]=c.b;
stop_color[3]=c.a; color[3]=c.a;
} }
};//struct DebugUtilsLabel };//struct DebugUtilsLabel