Rise
The Vieneo Province
Toggle main menu visibility
Loading...
Searching...
No Matches
Materials11.h
Go to the documentation of this file.
1
#pragma once
2
#include "
Geometry11.h
"
3
#include <memory>
4
5
namespace
Rendering
6
{
7
// The production pass numbers are retained so mesh materials and authored
8
// content keep their meaning. Every program is SM5 bytecode owned by D3D11.
9
class
Materials11
10
{
11
public
:
12
HRESULT
Initialize
(ID3D11Device*
device
,
const
std::filesystem::path& shaderDirectory={});
13
HRESULT
Bind
(ID3D11DeviceContext* context,UINT pass,
const
VertexLayout11
& layout,
const
D3D11_VIEWPORT& viewport);
14
Parameters11
&
Values
() {
return
values
;}
15
void
Reset
();
16
const
std::string&
Status
()
const
{
return
status
;}
17
private
:
18
struct
Key
19
{
20
UINT
pass
;
21
VertexLayout11
layout
;
22
bool
operator<
(
const
Key
& other)
const
{
return
pass
!=other.
pass
?
pass
<other.
pass
:
layout
<other.
layout
;}
23
};
24
Microsoft::WRL::ComPtr<ID3D11Device>
device
;
25
std::filesystem::path
directory
;
26
Parameters11
values
;
27
std::map<Key,std::unique_ptr<Program11>>
programs
;
28
std::vector<Microsoft::WRL::ComPtr<ID3D11SamplerState>>
samplers
;
29
std::string
status
;
30
};
31
}
HRESULT
HRESULT(WINAPI *CUniBuffer::_ScriptApplyDigitSubstitution)(const SCRIPT_DIGITSUBSTITUTE *
Geometry11.h
Rendering::Materials11
Definition
Materials11.h:10
Rendering::Materials11::values
Parameters11 values
Definition
Materials11.h:26
Rendering::Materials11::device
Microsoft::WRL::ComPtr< ID3D11Device > device
Definition
Materials11.h:24
Rendering::Materials11::Values
Parameters11 & Values()
Definition
Materials11.h:14
Rendering::Materials11::Reset
void Reset()
Definition
Materials11.cpp:9
Rendering::Materials11::Bind
HRESULT Bind(ID3D11DeviceContext *context, UINT pass, const VertexLayout11 &layout, const D3D11_VIEWPORT &viewport)
Definition
Materials11.cpp:25
Rendering::Materials11::Status
const std::string & Status() const
Definition
Materials11.h:16
Rendering::Materials11::programs
std::map< Key, std::unique_ptr< Program11 > > programs
Definition
Materials11.h:27
Rendering::Materials11::samplers
std::vector< Microsoft::WRL::ComPtr< ID3D11SamplerState > > samplers
Definition
Materials11.h:28
Rendering::Materials11::Initialize
HRESULT Initialize(ID3D11Device *device, const std::filesystem::path &shaderDirectory={})
Definition
Materials11.cpp:14
Rendering::Materials11::status
std::string status
Definition
Materials11.h:29
Rendering::Materials11::directory
std::filesystem::path directory
Definition
Materials11.h:25
Rendering::Parameters11
Definition
Program11.h:15
Rendering
Definition
AdDiagnostics11.cpp:16
Rendering::Materials11::Key
Definition
Materials11.h:19
Rendering::Materials11::Key::operator<
bool operator<(const Key &other) const
Definition
Materials11.h:22
Rendering::Materials11::Key::pass
UINT pass
Definition
Materials11.h:20
Rendering::Materials11::Key::layout
VertexLayout11 layout
Definition
Materials11.h:21
Rendering::VertexLayout11
Definition
Geometry11.h:12
Rendering
Materials11.h
Generated on
for Rise by
1.18.0