Skip to content

Commit

Permalink
MTL: bindless textures sort of work
Browse files Browse the repository at this point in the history
  • Loading branch information
Ravbug committed Jul 10, 2024
1 parent 6688ffc commit cd3ba38
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion deps/ShaderTranspiler
2 changes: 1 addition & 1 deletion src/MTLCommandBuffer.mm
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ uint32_t bytesPerPixel(MTLPixelFormat format){
[currentComputeCommandEncoder setSamplerState:std::static_pointer_cast<SamplerMTL>(sampler)->sampler atIndex:index];
}

constexpr static uint32_t bindlessOffset = 1;
constexpr static uint32_t bindlessOffset = 0;

void CommandBufferMTL::SetVertexTexture(const TextureView& view, uint32_t index){
if (view.texture.mtl.representsBindless){
Expand Down

0 comments on commit cd3ba38

Please sign in to comment.