libobs-d3d11: Add optional macro to log shader disassembly

This commit is contained in:
jp9000
2016-11-25 12:01:31 -08:00
parent c6c58e55b3
commit d2bb7157c2
3 changed files with 26 additions and 0 deletions

View File

@@ -37,6 +37,8 @@
#include <util/windows/ComPtr.hpp>
#include <util/windows/HRError.hpp>
// #define DISASSEMBLE_SHADERS
struct shader_var;
struct shader_sampler;
struct gs_vertex_shader;
@@ -801,6 +803,9 @@ struct gs_device {
D3D11_PRIMITIVE_TOPOLOGY curToplogy;
pD3DCompile d3dCompile = nullptr;
#ifdef DISASSEMBLE_SHADERS
pD3DDisassemble d3dDisassemble = nullptr;
#endif
gs_rect viewport;