Files
XCEngine/engine/include/XCEngine/RHI/RHITexture.h
ssdfasd 1e88beacb8 RHI: Fix view type signatures in CommandList abstraction
- 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
2026-03-24 23:41:57 +08:00

35 lines
831 B
C++

#pragma once
#include "RHITypes.h"
#include "RHIEnums.h"
#include "RHIResource.h"
#include <string>
namespace XCEngine {
namespace RHI {
class RHITexture : public RHIResource {
public:
virtual ~RHITexture() = default;
virtual uint32_t GetWidth() const = 0;
virtual uint32_t GetHeight() const = 0;
virtual uint32_t GetDepth() const = 0;
virtual uint32_t GetMipLevels() const = 0;
virtual Format GetFormat() const = 0;
virtual TextureType GetTextureType() const = 0;
virtual ResourceStates GetState() const = 0;
virtual void SetState(ResourceStates state) = 0;
virtual void* GetNativeHandle() = 0;
virtual const std::string& GetName() const = 0;
virtual void SetName(const std::string& name) = 0;
virtual void Shutdown() = 0;
};
} // namespace RHI
} // namespace XCEngine