14 #include <D3Dcompiler.h> 34 ULONG refs =
object->Release();
46 ULONG refs =
object->Release();
50 LogError(
"Reference count is not zero after release.");
82 if (
object && name !=
"")
84 hr =
object->SetPrivateData(WKPDID_D3DDebugObjectName,
85 static_cast<UINT>(name.length()), name.c_str());
99 if (
object && name !=
"")
101 hr =
object->SetPrivateData(WKPDID_D3DDebugObjectName,
102 static_cast<UINT>(name.length()), name.c_str());
116 #define CHECK_HR_RETURN_NONE(msg)\ 119 LogError(std::string(msg) + ", hr = " + std::to_string(hr) + "."); \ 122 #define CHECK_HR_RETURN_VOID(msg)\ 125 LogError(std::string(msg) + ", hr = " + std::to_string(hr) + "."); \ 129 #define CHECK_HR_RETURN(msg, value)\ 132 LogError(std::string(msg) + ", hr = " + std::to_string(hr) + "."); \ 139 #define D3D11_BIND_NONE 0 142 #define D3D11_RESOURCE_MISC_NONE 0 145 #define D3D11_BUFFER_UAV_FLAG_BASIC 0 148 #define D3D11_CPU_ACCESS_NONE 0 149 #define D3D11_CPU_ACCESS_READ_WRITE (D3D11_CPU_ACCESS_READ | D3D11_CPU_ACCESS_WRITE) 152 #define D3D11_QUERY_MISC_NONE 0
HRESULT SetPrivateName(ID3D11DeviceChild *object, std::string const &name)
GLuint const GLchar * name
ULONG FinalRelease(T *&object)
GLsizei const GLchar *const * string
#define LogError(message)
InterfaceReleaser(IUnknown *object)
ULONG SafeRelease(T *&object)