排版和额外定义GBUFFER尺寸宏
This commit is contained in:
parent
301aaaef56
commit
5ef05ffbcb
@ -14,6 +14,9 @@
|
|||||||
using namespace hgl;
|
using namespace hgl;
|
||||||
using namespace hgl::graph;
|
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_WIDTH=128;
|
||||||
constexpr uint32_t SCREEN_HEIGHT=128;
|
constexpr uint32_t SCREEN_HEIGHT=128;
|
||||||
|
|
||||||
@ -116,8 +119,8 @@ private:
|
|||||||
|
|
||||||
bool InitGBuffer()
|
bool InitGBuffer()
|
||||||
{
|
{
|
||||||
gbuffer.width=1024;
|
gbuffer.width =GBUFFER_WIDTH;
|
||||||
gbuffer.height=1024;
|
gbuffer.height =GBUFFER_HEIGHT;
|
||||||
|
|
||||||
//根据候选格式表选择格式
|
//根据候选格式表选择格式
|
||||||
const VkFormat position_format =GetCandidateFormat(position_candidate_format, sizeof(position_candidate_format));
|
const VkFormat position_format =GetCandidateFormat(position_candidate_format, sizeof(position_candidate_format));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user