27 lines
577 B
C++
27 lines
577 B
C++
#pragma once
|
|
|
|
#include <XCEngine/RHI/RHIEnums.h>
|
|
|
|
namespace XCEngine {
|
|
namespace RHI {
|
|
class RHICommandList;
|
|
class RHICommandQueue;
|
|
class RHIDevice;
|
|
} // namespace RHI
|
|
|
|
namespace Rendering {
|
|
|
|
struct RenderContext {
|
|
RHI::RHIDevice* device = nullptr;
|
|
RHI::RHICommandList* commandList = nullptr;
|
|
RHI::RHICommandQueue* commandQueue = nullptr;
|
|
RHI::RHIType backendType = RHI::RHIType::D3D12;
|
|
|
|
bool IsValid() const {
|
|
return device != nullptr && commandList != nullptr && commandQueue != nullptr;
|
|
}
|
|
};
|
|
|
|
} // namespace Rendering
|
|
} // namespace XCEngine
|