Skip to content

Commit 1216997

Browse files
corporatesharkfacebook-github-bot
authored andcommitted
igl | metal | Implement ComputeCommandEncoder::bindImageTexture()
Reviewed By: mmaurer Differential Revision: D70110010 fbshipit-source-id: d42b314cbffb64c62469e399397260472ee41ccb
1 parent 28133b7 commit 1216997

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

src/igl/metal/ComputeCommandEncoder.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ class ComputeCommandEncoder final : public IComputeCommandEncoder {
3232
void popDebugGroupLabel() const override;
3333
void bindUniform(const UniformDesc& uniformDesc, const void* data) override;
3434
void bindTexture(uint32_t index, ITexture* texture) override;
35+
void bindImageTexture(uint32_t index, ITexture* texture, TextureFormat format) override;
3536
void bindBuffer(uint32_t index, IBuffer* buffer, size_t offset, size_t bufferSize) override;
3637
void bindBytes(size_t index, const void* data, size_t length) override;
3738
void bindPushConstants(const void* data, size_t length, size_t offset) override;

src/igl/metal/ComputeCommandEncoder.mm

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,14 @@
8686
}
8787
}
8888

89+
void ComputeCommandEncoder::bindImageTexture(uint32_t index,
90+
ITexture* texture,
91+
TextureFormat format) {
92+
(void)format;
93+
94+
this->bindTexture(index, texture);
95+
}
96+
8997
void ComputeCommandEncoder::bindBuffer(uint32_t index,
9098
IBuffer* buffer,
9199
size_t offset,

0 commit comments

Comments
 (0)