|
|
|
@ -37,7 +37,6 @@ |
|
|
|
#include "video_core/renderer_vulkan/vk_scheduler.h"
|
|
|
|
#include "video_core/renderer_vulkan/vk_shader_util.h"
|
|
|
|
#include "video_core/renderer_vulkan/vk_update_descriptor.h"
|
|
|
|
#include "video_core/surface.h"
|
|
|
|
#include "video_core/shader_cache.h"
|
|
|
|
#include "video_core/shader_environment.h"
|
|
|
|
#include "video_core/shader_notify.h"
|
|
|
|
@ -109,21 +108,6 @@ Shader::CompareFunction MaxwellToCompareFunction(Maxwell::ComparisonOp compariso |
|
|
|
return {}; |
|
|
|
} |
|
|
|
|
|
|
|
Shader::AttributeType RenderTargetAttributeType(Tegra::RenderTargetFormat format) { |
|
|
|
if (format == Tegra::RenderTargetFormat::NONE) { |
|
|
|
return Shader::AttributeType::Float; |
|
|
|
} |
|
|
|
const auto pixel_format{ |
|
|
|
VideoCore::Surface::PixelFormatFromRenderTargetFormat(format)}; |
|
|
|
if (!VideoCore::Surface::IsPixelFormatInteger(pixel_format)) { |
|
|
|
return Shader::AttributeType::Float; |
|
|
|
} |
|
|
|
if (VideoCore::Surface::IsPixelFormatSignedInteger(pixel_format)) { |
|
|
|
return Shader::AttributeType::SignedInt; |
|
|
|
} |
|
|
|
return Shader::AttributeType::UnsignedInt; |
|
|
|
} |
|
|
|
|
|
|
|
VkShaderStageFlagBits StageToVkStage(Shader::Stage stage) { |
|
|
|
switch (stage) { |
|
|
|
case Shader::Stage::VertexA: |
|
|
|
|