summaryrefslogtreecommitdiffstats
path: root/unityplugin/GhostCubePlugin/PluginSource/src/SamplePlugin.h
blob: 0becc7f3e8876eba13869f763190c6e98db4dec2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#pragma once

#include "RenderDevice.h"
#include "DeviceContext.h"
#include "RefCntAutoPtr.hpp"
#include "RenderAPI.h"
#include "BasicMath.hpp"

class SamplePlugin
{
public:
    SamplePlugin(Diligent::IRenderDevice *pDevice, bool UseReverseZ, Diligent::TEXTURE_FORMAT RTVFormat, Diligent::TEXTURE_FORMAT DSVFormat);
    void Render(Diligent::IDeviceContext *pContext, const Diligent::float4x4 &ViewProjMatrix);

private:
    Diligent::RefCntAutoPtr<Diligent::IBuffer> m_CubeVertexBuffer;
    Diligent::RefCntAutoPtr<Diligent::IBuffer> m_CubeIndexBuffer;
    Diligent::RefCntAutoPtr<Diligent::IBuffer> m_VSConstants;
    Diligent::RefCntAutoPtr<Diligent::IPipelineState> m_PSO;
    Diligent::RefCntAutoPtr<Diligent::IShaderResourceBinding> m_SRB;
};