Skip to content

Commit

Permalink
HgiMetal: Fix some more types, shader func ctor.
Browse files Browse the repository at this point in the history
  • Loading branch information
furby-tm committed Aug 6, 2024
1 parent 4841b8f commit 6f05388
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions Sources/HgiMetal/include/HgiMetal/graphicsCmds.h
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,8 @@ class HgiMetalGraphicsCmds final : public HgiGraphicsCmds {

void ResetCachedEncoderState();

MTLViewport viewport;
MTLScissorRect scissorRect;
MTL::Viewport viewport;
MTL::ScissorRect scissorRect;

HgiMetalResourceBindings *resourceBindings;
HgiMetalGraphicsPipeline *graphicsPipeline;
Expand All @@ -136,7 +136,7 @@ class HgiMetalGraphicsCmds final : public HgiGraphicsCmds {
} _CachedEncState;

HgiMetal *_hgi;
MTLRenderPassDescriptor *_renderPassDescriptor;
MTL::RenderPassDescriptor *_renderPassDescriptor;
MTL::ParallelRenderCommandEncoder* _parallelEncoder;
std::vector<MTL::RenderCommandEncoder*> _encoders;
MTL::Buffer* _argumentBuffer;
Expand Down
2 changes: 1 addition & 1 deletion Sources/HgiMetal/include/HgiMetal/graphicsPipeline.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class HgiMetalGraphicsPipeline final : public HgiGraphicsPipeline {
void _CreateDepthStencilState(HgiMetal *hgi);
void _CreateRenderPipelineState(HgiMetal *hgi);

MTLVertexDescriptor *_vertexDescriptor;
MTL::VertexDescriptor *_vertexDescriptor;
MTL::DepthStencilState* _depthStencilState;
MTL::RenderPipelineState* _renderPipelineState;
MTL::Buffer* _constantTessFactors;
Expand Down
2 changes: 1 addition & 1 deletion Sources/HgiMetal/include/HgiMetal/shaderProgram.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ PXR_NAMESPACE_OPEN_SCOPE
class HgiMetalShaderProgram final : public HgiShaderProgram {
public:
HGIMETAL_API
~HgiMetalShaderProgram() override;
~HgiMetalShaderProgram() noexcept override;

HGIMETAL_API
bool IsValid() const override;
Expand Down
2 changes: 1 addition & 1 deletion Sources/HgiMetal/shaderFunction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@

PXR_NAMESPACE_OPEN_SCOPE

HgiMetalShaderFunction::HgiMetalShaderFunctionHgiMetalShaderFunction(
HgiMetalShaderFunction::HgiMetalShaderFunction(
HgiMetal *hgi, HgiShaderFunctionDesc const &desc)
: HgiShaderFunction(desc), _shaderId(nil)
{
Expand Down

0 comments on commit 6f05388

Please sign in to comment.