mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-07-12 00:27:23 +02:00
39 lines
No EOL
948 B
C++
39 lines
No EOL
948 B
C++
//
|
|
// DebugDeferredBuffer.h
|
|
// libraries/render-utils/src
|
|
//
|
|
// Created by Clement on 12/3/15.
|
|
// Copyright 2015 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
|
|
//
|
|
|
|
#ifndef hifi_DebugDeferredBuffer_h
|
|
#define hifi_DebugDeferredBuffer_h
|
|
|
|
#include <render/DrawTask.h>
|
|
|
|
class DebugDeferredBuffer {
|
|
public:
|
|
using JobModel = render::Job::Model<DebugDeferredBuffer>;
|
|
|
|
enum DebugDeferredBufferSlot : int {
|
|
Diffuse = 0,
|
|
Normal,
|
|
Specular,
|
|
Depth,
|
|
Lighting,
|
|
|
|
NUM_SLOTS
|
|
};
|
|
|
|
void run(const render::SceneContextPointer& sceneContext, const render::RenderContextPointer& renderContext);
|
|
|
|
private:
|
|
const gpu::PipelinePointer& getPipeline(int slot);
|
|
|
|
std::array<gpu::PipelinePointer, NUM_SLOTS> _pipelines;
|
|
};
|
|
|
|
#endif // hifi_DebugDeferredBuffer_h
|