mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-05-24 19:57:05 +02:00
Added missing headers
This commit is contained in:
parent
67ad6e45e0
commit
4de1b078b0
1 changed files with 3 additions and 2 deletions
|
|
@ -20,6 +20,7 @@
|
||||||
#include "video_core/renderer_vulkan/vk_update_descriptor.h"
|
#include "video_core/renderer_vulkan/vk_update_descriptor.h"
|
||||||
#include "video_core/shader_notify.h"
|
#include "video_core/shader_notify.h"
|
||||||
#include "video_core/surface.h"
|
#include "video_core/surface.h"
|
||||||
|
#include "video_core/texture_cache/texture_cache.h"
|
||||||
#include "video_core/vulkan_common/vulkan_device.h"
|
#include "video_core/vulkan_common/vulkan_device.h"
|
||||||
#include "video_core/vulkan_common/vulkan_wrapper.h"
|
#include "video_core/vulkan_common/vulkan_wrapper.h"
|
||||||
#include "video_core/gpu_logging/gpu_logging.h"
|
#include "video_core/gpu_logging/gpu_logging.h"
|
||||||
|
|
@ -34,7 +35,7 @@ using Tegra::Texture::TexturePair;
|
||||||
using VideoCore::Surface::PixelFormat;
|
using VideoCore::Surface::PixelFormat;
|
||||||
using VideoCore::Surface::PixelFormatNumeric;
|
using VideoCore::Surface::PixelFormatNumeric;
|
||||||
|
|
||||||
std::optional<PixelFormatNumeric> NumericFromComponentType(
|
static std::optional<PixelFormatNumeric> NumericFromComponentType(
|
||||||
Shader::SamplerComponentType component_type) {
|
Shader::SamplerComponentType component_type) {
|
||||||
switch (component_type) {
|
switch (component_type) {
|
||||||
case Shader::SamplerComponentType::Float:
|
case Shader::SamplerComponentType::Float:
|
||||||
|
|
@ -48,7 +49,7 @@ std::optional<PixelFormatNumeric> NumericFromComponentType(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
PixelFormat ResolveTexelBufferFormat(PixelFormat format,
|
static PixelFormat ResolveTexelBufferFormat(PixelFormat format,
|
||||||
Shader::SamplerComponentType component_type) {
|
Shader::SamplerComponentType component_type) {
|
||||||
const auto desired_numeric = NumericFromComponentType(component_type);
|
const auto desired_numeric = NumericFromComponentType(component_type);
|
||||||
if (!desired_numeric) {
|
if (!desired_numeric) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue