Skip to content

Commit

Permalink
Fix unused variables
Browse files Browse the repository at this point in the history
  • Loading branch information
egorodet committed Dec 30, 2024
1 parent 6853f6c commit 922a59b
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions Apps/08-ConsoleCompute/Shaders/GameOfLifeRules.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,20 +44,21 @@ using uint3 = std::array<uint, 3>;

#endif

static const uint g_game_rule_classic = 0; // B3/S23
static const uint g_game_rule_flock = 1; // B3/S12
static const uint g_game_rule_star_trek = 2; // B3/S0248
static const uint g_game_rule_coral = 3; // B3/S45678
static const uint g_game_rule_geology = 4; // B3578/S24678
static const uint g_game_rule_vote = 5; // B5678/S45678

struct Constants
{
uint game_rule_id;
uint3 _padding;
};

#ifndef __cplusplus

static const uint g_game_rule_classic = 0; // B3/S23
static const uint g_game_rule_flock = 1; // B3/S12
static const uint g_game_rule_star_trek = 2; // B3/S0248
static const uint g_game_rule_coral = 3; // B3/S45678
static const uint g_game_rule_geology = 4; // B3578/S24678
static const uint g_game_rule_vote = 5; // B5678/S45678

static bool IsCellSurvived(uint game_rule_id, uint alive_neighbors_count)
{
switch(game_rule_id)
Expand Down

0 comments on commit 922a59b

Please sign in to comment.