mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-03-06 20:58:37 +01:00
34 lines
No EOL
531 B
C++
34 lines
No EOL
531 B
C++
#pragma once
|
|
|
|
#include "../spirv_code_buffer.h"
|
|
|
|
namespace dxvk {
|
|
|
|
/**
|
|
* \brief SPIR-V debug info generator
|
|
*
|
|
* Can be used to assign names to result IDs,
|
|
* such as variables, for debugging purposes.
|
|
*/
|
|
class SpirvDebugInfo {
|
|
|
|
public:
|
|
|
|
SpirvDebugInfo();
|
|
~SpirvDebugInfo();
|
|
|
|
const SpirvCodeBuffer& code() const {
|
|
return m_code;
|
|
}
|
|
|
|
void assignName(
|
|
uint32_t id,
|
|
const char* name);
|
|
|
|
private:
|
|
|
|
SpirvCodeBuffer m_code;
|
|
|
|
};
|
|
|
|
} |