mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-06-22 07:49:09 +02:00
55 lines
1.8 KiB
C++
55 lines
1.8 KiB
C++
//
|
|
// RenderViewTask.h
|
|
// render-utils/src/
|
|
//
|
|
// Created by Sam Gateau on 5/25/2017.
|
|
// Copyright 2017 High Fidelity, Inc.
|
|
//
|
|
// Distributed under the Apache License, Version 2.0.
|
|
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
|
//
|
|
#pragma once
|
|
#ifndef hifi_RenderViewTask_h
|
|
#define hifi_RenderViewTask_h
|
|
|
|
#include <render/Engine.h>
|
|
#include <render/RenderFetchCullSortTask.h>
|
|
|
|
#include "AssembleLightingStageTask.h"
|
|
|
|
class RenderShadowsAndDeferredTask {
|
|
public:
|
|
using Input = render::VaryingSet3<RenderFetchCullSortTask::Output, LightingModelPointer, AssembleLightingStageTask::Output>;
|
|
using JobModel = render::Task::ModelI<RenderShadowsAndDeferredTask, Input>;
|
|
|
|
RenderShadowsAndDeferredTask() {}
|
|
|
|
void build(JobModel& task, const render::Varying& inputs, render::Varying& outputs, render::CullFunctor cullFunctor, uint8_t tagBits, uint8_t tagMask);
|
|
|
|
};
|
|
|
|
class DeferredForwardSwitchJob {
|
|
public:
|
|
using Input = render::VaryingSet3<RenderFetchCullSortTask::Output, LightingModelPointer, AssembleLightingStageTask::Output>;
|
|
using JobModel = render::Switch::ModelI<DeferredForwardSwitchJob, Input>;
|
|
|
|
DeferredForwardSwitchJob() {}
|
|
|
|
void configure(const render::SwitchConfig& config) {}
|
|
void build(JobModel& task, const render::Varying& inputs, render::Varying& outputs, render::CullFunctor cullFunctor, uint8_t tagBits, uint8_t tagMask);
|
|
|
|
};
|
|
|
|
class RenderViewTask {
|
|
public:
|
|
using Input = RenderFetchCullSortTask::Output;
|
|
using JobModel = render::Task::ModelI<RenderViewTask, Input>;
|
|
|
|
RenderViewTask() {}
|
|
|
|
void build(JobModel& task, const render::Varying& inputs, render::Varying& outputs, render::CullFunctor cullFunctor, uint8_t tagBits = 0x00, uint8_t tagMask = 0x00);
|
|
|
|
};
|
|
|
|
|
|
#endif // hifi_RenderViewTask_h
|