vk: change default border color to black; fix GEQUAL compare op
This commit is contained in:
@@ -44,7 +44,7 @@ namespace vk
|
||||
case CELL_GCM_LEQUAL:
|
||||
return VK_COMPARE_OP_LESS_OR_EQUAL;
|
||||
case CELL_GCM_GEQUAL:
|
||||
return VK_COMPARE_OP_EQUAL;
|
||||
return VK_COMPARE_OP_GREATER_OR_EQUAL;
|
||||
case CELL_GCM_EQUAL:
|
||||
return VK_COMPARE_OP_EQUAL;
|
||||
case CELL_GCM_ALWAYS:
|
||||
|
||||
@@ -570,7 +570,7 @@ namespace vk
|
||||
info.minFilter = min_filter;
|
||||
info.mipmapMode = mipmap_mode;
|
||||
info.compareOp = VK_COMPARE_OP_NEVER;
|
||||
info.borderColor = VK_BORDER_COLOR_FLOAT_OPAQUE_WHITE;
|
||||
info.borderColor = VK_BORDER_COLOR_FLOAT_OPAQUE_BLACK;
|
||||
|
||||
CHECK_RESULT(vkCreateSampler(m_device, &info, nullptr, &value));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user