Rise
The Vieneo Province
Loading...
Searching...
No Matches
ReentryEnvelope11.h
Go to the documentation of this file.
1#pragma once
2#include "CloudRenderer11.h"
4
5namespace Rendering
6{
8 {
9 public:
10 HRESULT Initialize(ID3D11Device* device,const std::filesystem::path& directory={});
11 void Reset();
12 bool Ready() const {return program.Ready() && vertices.Get() && indices.Get() && state.Get() && flow.Get() && flowSampler.Get();}
13 HRESULT Render(ID3D11DeviceContext* context,ID3D11RenderTargetView* scene,const SceneDepth11& depth,
14 const D3D11_VIEWPORT& viewport,const DirectX::XMFLOAT4X4& view,const DirectX::XMFLOAT4X4& projection,
15 const ReentryEnvelope::Mesh& mesh,float strength,float time,float transmission,float visibilityKm);
16 private:
17 Microsoft::WRL::ComPtr<ID3D11Device> device;
18 Microsoft::WRL::ComPtr<ID3DDeviceContextState> state;
19 Microsoft::WRL::ComPtr<ID3D11RasterizerState> raster;
20 Microsoft::WRL::ComPtr<ID3D11DepthStencilState> depthState;
21 Microsoft::WRL::ComPtr<ID3D11BlendState> blend;
22 Microsoft::WRL::ComPtr<ID3D11Buffer> vertices,indices;
23 Microsoft::WRL::ComPtr<ID3D11ShaderResourceView> flow;
24 Microsoft::WRL::ComPtr<ID3D11SamplerState> flowSampler;
26 };
27}
HRESULT(WINAPI *CUniBuffer::_ScriptApplyDigitSubstitution)(const SCRIPT_DIGITSUBSTITUTE *
bool Ready() const
Definition Program11.h:66
Microsoft::WRL::ComPtr< ID3D11Device > device
Microsoft::WRL::ComPtr< ID3D11Buffer > vertices
HRESULT Render(ID3D11DeviceContext *context, ID3D11RenderTargetView *scene, const SceneDepth11 &depth, const D3D11_VIEWPORT &viewport, const DirectX::XMFLOAT4X4 &view, const DirectX::XMFLOAT4X4 &projection, const ReentryEnvelope::Mesh &mesh, float strength, float time, float transmission, float visibilityKm)
Microsoft::WRL::ComPtr< ID3D11SamplerState > flowSampler
Microsoft::WRL::ComPtr< ID3DDeviceContextState > state
Microsoft::WRL::ComPtr< ID3D11RasterizerState > raster
Microsoft::WRL::ComPtr< ID3D11DepthStencilState > depthState
Microsoft::WRL::ComPtr< ID3D11ShaderResourceView > flow
Microsoft::WRL::ComPtr< ID3D11Buffer > indices
Microsoft::WRL::ComPtr< ID3D11BlendState > blend
HRESULT Initialize(ID3D11Device *device, const std::filesystem::path &directory={})