排版和额外定义GBUFFER尺寸宏

This commit is contained in:
hyzboy 2019-07-05 20:09:49 +08:00
parent 301aaaef56
commit 5ef05ffbcb

View File

@ -14,6 +14,9 @@
using namespace hgl;
using namespace hgl::graph;
constexpr uint32_t GBUFFER_WIDTH=1024;
constexpr uint32_t GBUFFER_HEIGHT=1024;
constexpr uint32_t SCREEN_WIDTH=128;
constexpr uint32_t SCREEN_HEIGHT=128;
@ -116,8 +119,8 @@ private:
bool InitGBuffer()
{
gbuffer.width=1024;
gbuffer.height=1024;
gbuffer.width =GBUFFER_WIDTH;
gbuffer.height =GBUFFER_HEIGHT;
//根据候选格式表选择格式
const VkFormat position_format =GetCandidateFormat(position_candidate_format, sizeof(position_candidate_format));