Administrative source import: native x86 compilation passed for 423 authored units. Source placement and submission states are migrated separately; this commit does not imply peer acceptance.
Previous head: 35d2a8cb36
Payload SHA256: 592f016d2730c5593bb653aa054c1e5f76a6df72c8f5a09e66f74876e2e33dee
46 lines
1.5 KiB
C++
46 lines
1.5 KiB
C++
#ifndef RAGNAROK_SOURCE_RENDER_PRIMITIVES_RENDERQUEUES_H
|
|
#define RAGNAROK_SOURCE_RENDER_PRIMITIVES_RENDERQUEUES_H
|
|
|
|
#include "Render/Primitives/LightmappedPrimitive.h"
|
|
#include "Render/Primitives/RenderPrimitive.h"
|
|
|
|
#include <vector>
|
|
|
|
struct DepthPrimitive {
|
|
float depth;
|
|
RenderCommand* primitive;
|
|
};
|
|
|
|
struct RenderQueues {
|
|
std::vector<RenderCommand*> queue_015C;
|
|
std::vector<RenderCommand*> queue_0168;
|
|
std::vector<RenderCommand*> queue_0174;
|
|
std::vector<DepthPrimitive> queue_0180;
|
|
std::vector<DepthPrimitive> queue_018C;
|
|
std::vector<DepthPrimitive> queue_0198;
|
|
std::vector<DepthPrimitive> queue_01A4;
|
|
std::vector<RenderCommand*> queue_01B0;
|
|
std::vector<DepthPrimitive> queue_01BC;
|
|
std::vector<DepthPrimitive> queue_01C8;
|
|
std::vector<DepthPrimitive> queue_01D4;
|
|
std::vector<DepthPrimitive> queue_01E0;
|
|
std::vector<RenderCommand*> queue_01EC;
|
|
LightmappedQueues lightmapped;
|
|
std::vector<RenderCommand*> queue_0210;
|
|
std::vector<DepthPrimitive> queue_021C;
|
|
std::vector<DepthPrimitive> queue_0228;
|
|
std::vector<DepthPrimitive> queue_0234;
|
|
std::vector<LightmappedPrimitive*> queue_0240;
|
|
|
|
RenderQueues();
|
|
void Submit(RenderCommand* primitive, std::uint16_t flags, bool depthAlpha, float depthStart, float depthEnd);
|
|
void SubmitTriangle(RenderTriangle& triangle, std::uint16_t flags, class RenderCommandPool& pool, bool depthAlpha, float depthStart, float depthEnd);
|
|
void Clear();
|
|
};
|
|
|
|
#if defined(_WIN32) && !defined(_WIN64)
|
|
static_assert(sizeof(DepthPrimitive) == 8);
|
|
static_assert(sizeof(RenderQueues) == 240);
|
|
#endif
|
|
|
|
#endif
|