- Unified RHICommandList interface to use RHIResourceView* for all view types - Fixed OpenGLCommandList override signatures (SetVertexBuffers, SetIndexBuffer, etc.) - Fixed D3D12CommandList by removing duplicate SetVertexBuffer methods - Updated OpenGLCommandList.cpp to match new signatures - Build and all 845 tests pass
20 lines
354 B
C++
20 lines
354 B
C++
#pragma once
|
|
|
|
#include "RHITypes.h"
|
|
#include "RHIEnums.h"
|
|
|
|
namespace XCEngine {
|
|
namespace RHI {
|
|
|
|
class RHIResource {
|
|
public:
|
|
virtual ~RHIResource() = default;
|
|
|
|
virtual void* GetNativeHandle() = 0;
|
|
virtual ResourceStates GetState() const = 0;
|
|
virtual void SetState(ResourceStates state) = 0;
|
|
};
|
|
|
|
} // namespace RHI
|
|
} // namespace XCEngine
|