Welcome to mirror list, hosted at ThFree Co, Russian Federation.

mtl_batch.hh « metal « gpu « blender « source - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 236367bf5a4eb53b27adc918bb2e259933e30bcd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/* SPDX-License-Identifier: GPL-2.0-or-later */

/** \file
 * \ingroup gpu
 *
 * GPU geometry batch
 * Contains VAOs + VBOs + Shader representing a drawable entity.
 */

#pragma once

#include "MEM_guardedalloc.h"

#include "gpu_batch_private.hh"

namespace blender {
namespace gpu {

/* Pass-through MTLBatch. TODO(Metal): Implement. */
class MTLBatch : public Batch {
 public:
  void draw(int v_first, int v_count, int i_first, int i_count) override
  {
  }

  void draw_indirect(GPUStorageBuf *indirect_buf, intptr_t offset) override
  {
  }

  void multi_draw_indirect(GPUStorageBuf *indirect_buf,
                           int count,
                           intptr_t offset,
                           intptr_t stride) override
  {
  }
  MEM_CXX_CLASS_ALLOC_FUNCS("MTLBatch");
};

}  // namespace gpu
}  // namespace blender