Disabled setting of shader for now as it is buggy

This commit is contained in:
Kah Wei 2022-11-16 23:19:25 +08:00
parent ae5f7801d4
commit b129a68680
1 changed files with 2 additions and 0 deletions

View File

@ -174,6 +174,7 @@ namespace SHADE
bool shaderChanged = false;
const auto* SHADER_INFO = SHAssetManager::GetData<SHShaderAsset>(currentMatSpec->fragShader);
const std::string SHADER_NAME = SHADER_INFO ? SHADER_INFO->name : "Unknown Shader";
ImGui::BeginDisabled();
isDirty |= SHEditorWidgets::DragDropReadOnlyField<AssetID>
(
"Fragment Shader", SHADER_NAME.data(),
@ -181,6 +182,7 @@ namespace SHADE
[this](const AssetID& id) { currentMatSpec->fragShader = id; },
SHDragDrop::DRAG_RESOURCE
);
ImGui::EndDisabled();
// Load the shader to access it's data
auto fragShader = SHResourceManager::LoadOrGet<SHVkShaderModule>(currentMatSpec->fragShader);