Skip to content

Commit

Permalink
igl | metal | Implement ComputeCommandEncoder::bindImageTexture()
Browse files Browse the repository at this point in the history
Reviewed By: mmaurer

Differential Revision: D70110010

fbshipit-source-id: d42b314cbffb64c62469e399397260472ee41ccb
  • Loading branch information
corporateshark authored and facebook-github-bot committed Feb 25, 2025
1 parent 28133b7 commit 1216997
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/igl/metal/ComputeCommandEncoder.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ class ComputeCommandEncoder final : public IComputeCommandEncoder {
void popDebugGroupLabel() const override;
void bindUniform(const UniformDesc& uniformDesc, const void* data) override;
void bindTexture(uint32_t index, ITexture* texture) override;
void bindImageTexture(uint32_t index, ITexture* texture, TextureFormat format) override;
void bindBuffer(uint32_t index, IBuffer* buffer, size_t offset, size_t bufferSize) override;
void bindBytes(size_t index, const void* data, size_t length) override;
void bindPushConstants(const void* data, size_t length, size_t offset) override;
Expand Down
8 changes: 8 additions & 0 deletions src/igl/metal/ComputeCommandEncoder.mm
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,14 @@
}
}

void ComputeCommandEncoder::bindImageTexture(uint32_t index,
ITexture* texture,
TextureFormat format) {
(void)format;

this->bindTexture(index, texture);
}

void ComputeCommandEncoder::bindBuffer(uint32_t index,
IBuffer* buffer,
size_t offset,
Expand Down

0 comments on commit 1216997

Please sign in to comment.