mirror of https://github.com/AxioDL/metaforce.git
25 lines
610 B
C++
25 lines
610 B
C++
#pragma once
|
|
|
|
#include "../common.hpp"
|
|
#include "../gx.hpp"
|
|
|
|
namespace aurora::gfx::stream {
|
|
struct DrawData {
|
|
PipelineRef pipeline;
|
|
Range vertRange;
|
|
Range uniformRange;
|
|
Range indexRange;
|
|
uint32_t indexCount;
|
|
gx::GXBindGroups bindGroups;
|
|
std::optional<float> dstAlpha;
|
|
};
|
|
|
|
struct PipelineConfig : public gx::PipelineConfig {};
|
|
|
|
struct State {};
|
|
|
|
State construct_state();
|
|
wgpu::RenderPipeline create_pipeline(const State& state, [[maybe_unused]] PipelineConfig config);
|
|
void render(const State& state, const DrawData& data, const wgpu::RenderPassEncoder& pass);
|
|
} // namespace aurora::gfx::stream
|