Skip to content

Commit

Permalink
Update logging for D3DSURFACE_DESC
Browse files Browse the repository at this point in the history
  • Loading branch information
elishacloud committed Dec 4, 2024
1 parent 8f1a20b commit 9122037
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Logging/Logging.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -787,6 +787,19 @@ std::ostream& operator<<(std::ostream& os, const D3DPRESENT_PARAMETERS& pp)
<< Logging::hex(pp.PresentationInterval);
}

std::ostream& operator<<(std::ostream& os, const D3DSURFACE_DESC& desc)
{
return Logging::LogStruct(os)
<< desc.Format
<< desc.Type
<< Logging::hex(desc.Usage)
<< desc.Pool
<< desc.MultiSampleType
<< desc.MultiSampleQuality
<< desc.Width
<< desc.Height;
}

#ifndef _D3D8_H_
DEFINE_GUID(IID_IDirect3D8, 0x1dd9e8da, 0x1c77, 0x4d40, 0xb0, 0xcf, 0x98, 0xfe, 0xfd, 0xff, 0x95, 0x12);
DEFINE_GUID(IID_IDirect3DDevice8, 0x7385e5df, 0x8fe8, 0x41d5, 0x86, 0xb6, 0xd7, 0xb4, 0x85, 0x47, 0xb6, 0xcf);
Expand Down
1 change: 1 addition & 0 deletions Logging/Logging.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ std::ostream& operator<<(std::ostream& os, const D3DDEVICEDESC7& dd);
std::ostream& operator<<(std::ostream& os, const D3DFORMAT& format);
std::ostream& operator<<(std::ostream& os, const D3DRESOURCETYPE& Resource);
std::ostream& operator<<(std::ostream& os, const D3DPRESENT_PARAMETERS& pp);
std::ostream& operator<<(std::ostream& os, const D3DSURFACE_DESC& desc);
#endif
#ifdef GUID_DEFINED
std::ostream& operator<<(std::ostream& os, REFIID riid);
Expand Down

0 comments on commit 9122037

Please sign in to comment.