添加多模型渲染,添加贴图渲染,添加平行光, 暂时不上传assets
This commit is contained in:
@@ -168,9 +168,12 @@ namespace Engine
|
||||
return caps.currentExtent;
|
||||
}
|
||||
|
||||
int fbWidth = 0, fbHeight = 0;
|
||||
window.GetFramebufferSize(fbWidth, fbHeight);
|
||||
|
||||
vk::Extent2D extent = {
|
||||
static_cast<uint32_t>(window.GetWidth()),
|
||||
static_cast<uint32_t>(window.GetHeight())
|
||||
static_cast<uint32_t>(fbWidth),
|
||||
static_cast<uint32_t>(fbHeight)
|
||||
};
|
||||
|
||||
extent.width = std::clamp(extent.width, caps.minImageExtent.width, caps.maxImageExtent.width);
|
||||
|
||||
Reference in New Issue
Block a user