mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-09-30 09:35:52 +00:00
Mark accessors/return values that can be None with Optional[]
* This helps with type checkers to know that things can be None or not (both to silence previous warnings about "unnecessary" checks that are actually necessary, and to ensure those checks aren't omitted by accident)
This commit is contained in:
@@ -106,7 +106,7 @@ def prepare_history():
|
||||
|
||||
refl = pipe.GetShaderReflection(renderdoc.ShaderStage.Pixel)
|
||||
|
||||
if not refl.debugInfo.debuggable:
|
||||
if refl is None or not refl.debugInfo.debuggable:
|
||||
print("Shader can't be debugged:")
|
||||
print(refl.debugInfo.debugStatus)
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user