summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/Assets/ShaderAsset.cpp
diff options
context:
space:
mode:
authorAdmiral H. Curtiss <pikachu025@gmail.com>2023-09-12 16:56:26 +0200
committerGitHub <noreply@github.com>2023-09-12 16:56:26 +0200
commit1a821465f4b6bdeef09e8a964a0d2ce50cf7970d (patch)
tree3495fa75bd01d743649a34540d2b8ff3b99ddf28 /Source/Core/VideoCommon/Assets/ShaderAsset.cpp
parent308a52a7824e006bb3950c7b168f5bdf9ad1e4c4 (diff)
parent589834f56229edc217d9f2bc1805961cabde9028 (diff)
Merge pull request #12166 from iwubcode/cubemap_shader_texture_integration
VideoCommon: add cubemap to ShaderAsset and TextureAsset
Diffstat (limited to 'Source/Core/VideoCommon/Assets/ShaderAsset.cpp')
-rw-r--r--Source/Core/VideoCommon/Assets/ShaderAsset.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/Core/VideoCommon/Assets/ShaderAsset.cpp b/Source/Core/VideoCommon/Assets/ShaderAsset.cpp
index af5dad4a93..cbb043095c 100644
--- a/Source/Core/VideoCommon/Assets/ShaderAsset.cpp
+++ b/Source/Core/VideoCommon/Assets/ShaderAsset.cpp
@@ -49,6 +49,10 @@ bool ParseShaderProperties(const VideoCommon::CustomAssetLibrary::AssetID& asset
{
property.m_type = ShaderProperty::Type::Type_Sampler2D;
}
+ else if (type == "samplercube")
+ {
+ property.m_type = ShaderProperty::Type::Type_SamplerCube;
+ }
else if (type == "samplerarrayshared_main")
{
property.m_type = ShaderProperty::Type::Type_SamplerArrayShared_Main;