summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/Assets/ShaderAsset.cpp
diff options
context:
space:
mode:
authoriwubcode <iwubcode@users.noreply.github.com>2023-09-05 21:11:19 -0500
committeriwubcode <iwubcode@users.noreply.github.com>2023-09-05 21:11:19 -0500
commit589834f56229edc217d9f2bc1805961cabde9028 (patch)
tree7d5c959e68301a1b5a4de4f52db8a911f35796ff /Source/Core/VideoCommon/Assets/ShaderAsset.cpp
parent9419d92446f4bb47c2192dc0bd3da7c23c611a4f (diff)
VideoCommon: add cubemap as a sampler target for shaders, add cubemap as a valid texture asset
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;