Skip to content

Commit

Permalink
Update VeilShaderBufferLayout.java
Browse files Browse the repository at this point in the history
  • Loading branch information
Ocelot5836 committed Jan 19, 2025
1 parent 0e17b69 commit fcba920
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import org.jetbrains.annotations.Nullable;
import org.joml.*;

import java.lang.Math;
import java.nio.ByteBuffer;
import java.util.Random;
import java.util.*;
Expand Down Expand Up @@ -106,7 +107,7 @@ public static class Builder<T> {
private ShaderBlock.MemoryLayout memoryLayout;

public Builder() {
this.name = "VeilBuffer" + RANDOM.nextLong();
this.name = "VeilBuffer" + Math.abs(RANDOM.nextInt());
this.structFields = new ArrayList<>();
this.fields = new Object2ObjectArrayMap<>();
this.binding = ShaderBlock.BufferBinding.UNIFORM;
Expand Down

0 comments on commit fcba920

Please sign in to comment.