@@ -30,7 +30,7 @@ class PipelineDescriptor final : public Comparable<PipelineDescriptor> {
30
30
31
31
PipelineDescriptor& SetLabel (std::string label);
32
32
33
- const std::string& GetLabel () const { return label_; }
33
+ const std::string& GetLabel () const ;
34
34
35
35
PipelineDescriptor& SetSampleCount (size_t samples);
36
36
@@ -40,16 +40,12 @@ class PipelineDescriptor final : public Comparable<PipelineDescriptor> {
40
40
std::shared_ptr<const ShaderFunction> function);
41
41
42
42
const std::map<ShaderStage, std::shared_ptr<const ShaderFunction>>&
43
- GetStageEntrypoints () const {
44
- return entrypoints_;
45
- }
43
+ GetStageEntrypoints () const ;
46
44
47
45
PipelineDescriptor& SetVertexDescriptor (
48
46
std::shared_ptr<VertexDescriptor> vertex_descriptor);
49
47
50
- const std::shared_ptr<VertexDescriptor>& GetVertexDescriptor () const {
51
- return vertex_descriptor_;
52
- }
48
+ const std::shared_ptr<VertexDescriptor>& GetVertexDescriptor () const ;
53
49
54
50
PipelineDescriptor& SetColorAttachmentDescriptor (
55
51
size_t index,
@@ -59,17 +55,13 @@ class PipelineDescriptor final : public Comparable<PipelineDescriptor> {
59
55
size_t index) const ;
60
56
61
57
const std::map<size_t /* index */ , ColorAttachmentDescriptor>
62
- GetColorAttachmentDescriptors () const {
63
- return color_attachment_descriptors_;
64
- }
58
+ GetColorAttachmentDescriptors () const ;
65
59
66
60
PipelineDescriptor& SetDepthStencilAttachmentDescriptor (
67
61
DepthAttachmentDescriptor desc);
68
62
69
63
std::optional<DepthAttachmentDescriptor> GetDepthStencilAttachmentDescriptor ()
70
- const {
71
- return depth_attachment_descriptor_;
72
- }
64
+ const ;
73
65
74
66
PipelineDescriptor& SetStencilAttachmentDescriptors (
75
67
StencilAttachmentDescriptor front_and_back);
@@ -79,29 +71,27 @@ class PipelineDescriptor final : public Comparable<PipelineDescriptor> {
79
71
StencilAttachmentDescriptor back);
80
72
81
73
std::optional<StencilAttachmentDescriptor>
82
- GetFrontStencilAttachmentDescriptor () const {
83
- return front_stencil_attachment_descriptor_;
84
- }
74
+ GetFrontStencilAttachmentDescriptor () const ;
85
75
86
76
std::optional<StencilAttachmentDescriptor>
87
- GetBackStencilAttachmentDescriptor () const {
88
- return back_stencil_attachment_descriptor_;
89
- }
77
+ GetBackStencilAttachmentDescriptor () const ;
90
78
91
79
PipelineDescriptor& SetDepthPixelFormat (PixelFormat format);
92
80
93
- PixelFormat GetDepthPixelFormat () const { return depth_pixel_format_; }
81
+ PixelFormat GetDepthPixelFormat () const ;
94
82
95
83
PipelineDescriptor& SetStencilPixelFormat (PixelFormat format);
96
84
97
- PixelFormat GetStencilPixelFormat () const { return stencil_pixel_format_; }
85
+ PixelFormat GetStencilPixelFormat () const ;
98
86
99
87
// Comparable<PipelineDescriptor>
100
88
std::size_t GetHash () const override ;
101
89
102
90
// Comparable<PipelineDescriptor>
103
91
bool IsEqual (const PipelineDescriptor& other) const override ;
104
92
93
+ void ResetAttachments ();
94
+
105
95
private:
106
96
std::string label_;
107
97
size_t sample_count_ = 1 ;
0 commit comments