Skip to content

Commit

Permalink
Fix compile errors on mac
Browse files Browse the repository at this point in the history
  • Loading branch information
ueshita committed Feb 18, 2024
1 parent e30d1d1 commit d31e18c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Dev/Cpp/Effekseer/Effekseer/Backend/GraphicsDevice.h
Original file line number Diff line number Diff line change
Expand Up @@ -306,8 +306,8 @@ using ResourceBinder = std::variant<std::nullptr_t, TextureBinder, ComputeBuffer
struct DrawParameter
{
public:
static const int BufferSlotCount = 4;
static const int ResourceSlotCount = 16;
static constexpr int BufferSlotCount = 4;
static constexpr int ResourceSlotCount = 16;

VertexBufferRef VertexBufferPtr;
IndexBufferRef IndexBufferPtr;
Expand Down Expand Up @@ -735,4 +735,4 @@ inline int32_t GetVertexLayoutFormatSize(VertexLayoutFormat format)
} // namespace Backend
} // namespace Effekseer

#endif
#endif
1 change: 0 additions & 1 deletion Examples/Metal/DeviceMetal.mm
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,6 @@
efkManager->SetRingRenderer(efkRenderer->CreateRingRenderer());
efkManager->SetTrackRenderer(efkRenderer->CreateTrackRenderer());
efkManager->SetModelRenderer(efkRenderer->CreateModelRenderer());
efkManager->SetGpuParticles(efkRenderer->CreateGpuParticles());

// Specify a texture, model, curve and material loader
// It can be extended by yourself. It is loaded from a file on now.
Expand Down
5 changes: 5 additions & 0 deletions Examples/Metal/main.mm
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ int main(int argc, char** argv)
device.SetupEffekseerModules(efkManager);
auto efkRenderer = device.GetEffekseerRenderer();

// Setup GPUParticles module
// GPUParticlesモジュールをセットアップする
efkManager->SetGpuParticleFactory(efkRenderer->CreateGpuParticleFactory());
efkManager->SetGpuParticleSystem(efkRenderer->CreateGpuParticleSystem());

// Specify a position of view
// 視点位置を確定
auto viewerPosition = ::Effekseer::Vector3D(10.0f, 5.0f, 20.0f);
Expand Down

0 comments on commit d31e18c

Please sign in to comment.