use RGB565+RG8 GBuffer format.

This commit is contained in:
2020-10-27 14:29:26 +08:00
parent 35d0c6c9c9
commit 341acc92e1

View File

@@ -33,7 +33,7 @@ enum class GBufferAttachment
ENUM_CLASS_RANGE(Color,Normal)
};//
constexpr VkFormat gbuffer_color_format[size_t(GBufferAttachment::RANGE_SIZE)]={UFMT_RGBA32F,UFMT_RG8};
constexpr VkFormat gbuffer_color_format[size_t(GBufferAttachment::RANGE_SIZE)]={UFMT_RGB565,UFMT_RG8};
constexpr VkFormat gbuffer_depth_format=FMT_D32F;
struct alignas(16) PhongPointLight