- template<typename FUNC, typename STATE>
- void ExecuteStateChange(FUNC& func, const STATE* prevPipelineState, const STATE* thisPipelineState)
- {
- if(!prevPipelineState)
- {
- func();
- }
- else
- {
- // binary test and execute when different
- if(memcmp(prevPipelineState, thisPipelineState, sizeof(STATE)) != 0)
- {
- func();
- }
- }
- }
-
- void Retain();
-
- void Release();
-
- [[nodiscard]] uint32_t GetRefCount() const;
-
- [[nodiscard]] const PipelineCreateInfo& GetCreateInfo() const;
-