#include "best_practices/best_practices_validation.h"
#include "best_practices/bp_state.h"
static std::array<uint32_t, 4> GetRawClearColor(VkFormat format, const VkClearColorValue& clear_value) { … }
static bool IsClearColorZeroOrOne(VkFormat format, const std::array<uint32_t, 4> clear_color) { … }
void BestPractices::RecordSetDepthTestState(bp_state::CommandBuffer& cmd_state, VkCompareOp new_depth_compare_op,
bool new_depth_test_enable) { … }
void BestPractices::RecordBindZcullScope(bp_state::CommandBuffer& cmd_state, VkImage depth_attachment,
const VkImageSubresourceRange& subresource_range) { … }
void BestPractices::RecordUnbindZcullScope(bp_state::CommandBuffer& cmd_state) { … }
void BestPractices::RecordResetScopeZcullDirection(bp_state::CommandBuffer& cmd_state) { … }
template <typename Func>
static void ForEachSubresource(const vvl::Image& image, const VkImageSubresourceRange& range, Func&& func) { … }
void BestPractices::RecordResetZcullDirection(bp_state::CommandBuffer& cmd_state, VkImage depth_image,
const VkImageSubresourceRange& subresource_range) { … }
void BestPractices::RecordSetScopeZcullDirection(bp_state::CommandBuffer& cmd_state, ZcullDirection mode) { … }
void BestPractices::RecordSetZcullDirection(bp_state::CommandBuffer& cmd_state, VkImage depth_image,
const VkImageSubresourceRange& subresource_range, ZcullDirection mode) { … }
void BestPractices::RecordZcullDraw(bp_state::CommandBuffer& cmd_state) { … }
bool BestPractices::ValidateZcullScope(const bp_state::CommandBuffer& cmd_state, const Location& loc) const { … }
bool BestPractices::ValidateZcull(const bp_state::CommandBuffer& cmd_state, VkImage image,
const VkImageSubresourceRange& subresource_range, const Location& loc) const { … }
static constexpr std::array<VkFormat, 12> kCustomClearColorCompressedFormatsNVIDIA = …;
void BestPractices::RecordClearColor(VkFormat format, const VkClearColorValue& clear_value) { … }
bool BestPractices::ValidateClearColor(VkCommandBuffer commandBuffer, VkFormat format, const VkClearColorValue& clear_value,
const Location& loc) const { … }