mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-11-16 18:56:58 +00:00
Pass through and allow different source shader encodings when editing
* This means e.g. the D3D11 back-end can accept DXBC directly if the UI can provide it, or compile from HLSL as before. * More importantly, the Vulkan back-end can take SPIR-V compiled from any source, or compile from GLSL as before as a fall-back.
This commit is contained in:
28 files changed
+432
-286
No files matched your search
@@ -1459,13 +1459,14 @@ void CaptureContext::ShowResourceInspector()
|
||||
m_MainWindow->showResourceInspector();
|
||||
}
|
||||
|
||||
IShaderViewer *CaptureContext::EditShader(bool customShader, const rdcstr &entryPoint,
|
||||
const rdcstrpairs &files,
|
||||
IShaderViewer *CaptureContext::EditShader(bool customShader, ShaderStage stage,
|
||||
const rdcstr &entryPoint, const rdcstrpairs &files,
|
||||
ShaderEncoding shaderEncoding, ShaderCompileFlags flags,
|
||||
IShaderViewer::SaveCallback saveCallback,
|
||||
IShaderViewer::CloseCallback closeCallback)
|
||||
{
|
||||
return ShaderViewer::EditShader(*this, customShader, entryPoint, files, saveCallback,
|
||||
closeCallback, m_MainWindow->Widget());
|
||||
return ShaderViewer::EditShader(*this, customShader, stage, entryPoint, files, shaderEncoding,
|
||||
flags, saveCallback, closeCallback, m_MainWindow->Widget());
|
||||
}
|
||||
|
||||
IShaderViewer *CaptureContext::DebugShader(const ShaderBindpointMapping *bind,
|
||||
|
||||
Reference in new issue
Block a user