diff options
| author | iwubcode <iwubcode@users.noreply.github.com> | 2023-09-05 21:11:19 -0500 |
|---|---|---|
| committer | iwubcode <iwubcode@users.noreply.github.com> | 2023-09-05 21:11:19 -0500 |
| commit | 589834f56229edc217d9f2bc1805961cabde9028 (patch) | |
| tree | 7d5c959e68301a1b5a4de4f52db8a911f35796ff /Source/Core/VideoCommon/Assets/ShaderAsset.cpp | |
| parent | 9419d92446f4bb47c2192dc0bd3da7c23c611a4f (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.cpp | 4 |
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; |
