#include <incomplete.h>
|
static size_t | rehash (std::string imgName, size_t seed) noexcept |
|
Definition at line 45 of file incomplete.h.
◆ Iache() [1/2]
◆ Iache() [2/2]
Iache::Iache |
( |
size_t |
hash | ) |
|
|
inline |
◆ ~Iache()
Definition at line 59 of file incomplete.h.
59{
log_once(
" Call destructor Iache \n"); };
#define log_once(...)
DELETE ALL ^((?!\w).)*log_once(.*; ^((?!\w).)*log_once((.* )+?.*;.
◆ Delete()
template<class I >
void Iache::Delete |
( |
I * |
im | ) |
|
|
inline |
Definition at line 107 of file incomplete.h.
107 {
108 long cnt = InterlockedDecrement(&
refCnt);
109 log_once(
" Decrement Iache %d \n", cnt);
110 if (cnt == 0) {
112 }
113 };
◆ operator=() [1/2]
Iache & Iache::operator= |
( |
size_t |
hash | ) |
|
|
inline |
Definition at line 62 of file incomplete.h.
63 {
64 if (this->
hash ==
hash)
return *
this;
65 if (
refCnt > 0)
log_bad(
"Iache reference exists. you lost the hash. \n");
68 return *this;
69 };
◆ operator=() [2/2]
template<class T >
Iache & Iache::operator= |
( |
T & |
iach | ) |
|
|
inline |
Definition at line 71 of file incomplete.h.
72 {
73
74 log_once(
" Call Swap Iache %d %x <=> %x , %x <=> %x \n",
refCnt, this->
hach.
id, iach.hach.id, this->hash, iach.hash);
75
76 if (this->
hash == iach.hash)
return *
this;
77 if (
refCnt > 0)
log_bad(
"Iache reference exists. you lost the hash. \n");
79 new (
this)
Iache(iach.hash);
80 this->
hach.
id = iach.hach.id;
81 this->
format = iach.format;
83 this->
refCnt = iach.refCnt;
85 log_once(
" Call Swap view %x id %x hash %x version %x\n", this->
vkI, this->
hach.
id, this->hach.hash, this->hach.version);
86 return *this;
87 };
◆ rehash()
static size_t Iache::rehash |
( |
std::string |
imgName, |
|
|
size_t |
seed |
|
) |
| |
|
inlinestaticnoexcept |
Definition at line 89 of file incomplete.h.
90 {
91 static std::hash<std::string> h_img{};
92 static std::hash<size_t> h_seed{};
93
95 hash += h_img(imgName);
98
104 };
◆ format
◆ hach
◆ hash
◆ layout
VkImageLayout Iache::layout |
◆ multisample
uint32_t Iache::multisample |
◆ name
◆ refCnt
◆ type
VkDescriptorType Iache::type |
◆ vkI
The documentation for this struct was generated from the following file: