Sleeping Wombat GUI  0.100
swGUI
MockInputLayoutDescriptor.h
Go to the documentation of this file.
1 #pragma once
2 
3 
5 
6 #include <vector>
7 
8 
9 namespace sw
10 {
11 
13 {
14  const char* SemanticName;
16  unsigned int InputSlot;
17  unsigned int ByteOffset;
19  unsigned int InstanceDataStep;
20 };
21 
22 
26 {
27 private:
28  std::vector< InputLayoutInfo > m_inputElement;
29 public:
30  MockInputLayoutDescriptor( const std::wstring& layoutName ) : InputLayoutDescriptor( layoutName ) {}
31  ~MockInputLayoutDescriptor() = default;
32 
33  Size GetNumElements() { return m_inputElement.size(); }
34 
35  virtual void AddRow( const char* semanticName,
36  ResourceFormat format,
37  unsigned int inputSlot,
38  unsigned int byteOffset,
39  bool perInstance,
40  unsigned int instanceDataStep );
41 
42  unsigned int CountSemantic( const char* semanticName );
43 };
44 
45 } // sw
virtual void AddRow(const char *semanticName, ResourceFormat format, unsigned int inputSlot, unsigned int byteOffset, bool perInstance, unsigned int instanceDataStep)
Definition: MockInputLayoutDescriptor.cpp:20
Klasa przechowuje opis layoutu wierzchołka, na podstawie którego tworzony jest obiekt layoutu...
Definition: MeshResources.h:352
ResourceFormat
Specyfikuje format tekstury bądź innego zasobu.
Definition: GraphicAPIConstants.h:153
unsigned int ByteOffset
Definition: MockInputLayoutDescriptor.h:17
Definition: DirectInputModule.cpp:11
MockInputLayoutDescriptor(const std::wstring &layoutName)
Definition: MockInputLayoutDescriptor.h:30
Definition: MockInputLayoutDescriptor.h:25
const char * SemanticName
Definition: MockInputLayoutDescriptor.h:14
Definition: MockInputLayoutDescriptor.h:12
unsigned int InputSlot
Definition: MockInputLayoutDescriptor.h:16
Plik zawiera deklaracje formatów wierzchołków oraz klas zawierających assety shadery itp...
size_t Size
Definition: TypesDefinitions.h:35
Size GetNumElements()
Definition: MockInputLayoutDescriptor.h:33
unsigned int CountSemantic(const char *semanticName)
Definition: MockInputLayoutDescriptor.cpp:36
unsigned int InstanceDataStep
Definition: MockInputLayoutDescriptor.h:19
std::vector< InputLayoutInfo > m_inputElement
Definition: MockInputLayoutDescriptor.h:28
ResourceFormat Format
Definition: MockInputLayoutDescriptor.h:15
bool PerInstance
Definition: MockInputLayoutDescriptor.h:18