Skip to content

Commit 56f9394

Browse files
dgovilmeshula
authored andcommitted
[hgi] Fixed inline function declarations
Removed the 'inline' specifier from several operator==() and operator!=() functions that are defined only in the corresponding cpp files and can't be instantiated inline. This is modified from the original PR which addressed only hgi/shaderProgram.h (Thanks to Maddy Adams) Closes PixarAnimationStudios#3682 (Internal change: 2370680)
1 parent 46ff720 commit 56f9394

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

pxr/imaging/hgi/buffer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ bool operator==(
6565
const HgiBufferDesc& rhs);
6666

6767
HGI_API
68-
inline bool operator!=(
68+
bool operator!=(
6969
const HgiBufferDesc& lhs,
7070
const HgiBufferDesc& rhs);
7171

pxr/imaging/hgi/graphicsPipeline.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ bool operator==(
5454
const HgiVertexAttributeDesc& rhs);
5555

5656
HGI_API
57-
inline bool operator!=(
57+
bool operator!=(
5858
const HgiVertexAttributeDesc& lhs,
5959
const HgiVertexAttributeDesc& rhs);
6060

pxr/imaging/hgi/resourceBindings.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ bool operator==(
8080
const HgiBufferBindDesc& rhs);
8181

8282
HGI_API
83-
inline bool operator!=(
83+
bool operator!=(
8484
const HgiBufferBindDesc& lhs,
8585
const HgiBufferBindDesc& rhs);
8686

pxr/imaging/hgi/shaderProgram.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,12 @@ struct HgiShaderProgramDesc
4141
};
4242

4343
HGI_API
44-
inline bool operator==(
44+
bool operator==(
4545
const HgiShaderProgramDesc& lhs,
4646
const HgiShaderProgramDesc& rhs);
4747

4848
HGI_API
49-
inline bool operator!=(
49+
bool operator!=(
5050
const HgiShaderProgramDesc& lhs,
5151
const HgiShaderProgramDesc& rhs);
5252

0 commit comments

Comments
 (0)