Skip to content

Commit 8707536

Browse files
committed
Fix for SampleCountFlags
1 parent 7f52f57 commit 8707536

File tree

2 files changed

+19
-11
lines changed

2 files changed

+19
-11
lines changed

graphics-by-opengl-j2se/src/main/java/com/nucleus/vulkan/structs/DeviceLimits.java

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
package com.nucleus.vulkan.structs;
22

3-
import com.nucleus.vulkan.Vulkan10.SampleCountFlagBits;
4-
53
/**
64
* Agnostic abstraction of DeviceLimits
75
*
@@ -92,16 +90,16 @@ protected DeviceLimits() {
9290
protected int maxFramebufferWidth;
9391
protected int maxFramebufferHeight;
9492
protected int maxFramebufferLayers;
95-
protected SampleCountFlagBits framebufferColorSampleCounts;
96-
protected SampleCountFlagBits framebufferDepthSampleCounts;
97-
protected SampleCountFlagBits framebufferStencilSampleCounts;
98-
protected SampleCountFlagBits framebufferNoAttachmentsSampleCounts;
93+
protected SampleCountFlags framebufferColorSampleCounts;
94+
protected SampleCountFlags framebufferDepthSampleCounts;
95+
protected SampleCountFlags framebufferStencilSampleCounts;
96+
protected SampleCountFlags framebufferNoAttachmentsSampleCounts;
9997
protected int maxColorAttachments;
100-
protected SampleCountFlagBits sampledImageColorSampleCounts;
101-
protected SampleCountFlagBits sampledImageIntegerSampleCounts;
102-
protected SampleCountFlagBits sampledImageDepthSampleCounts;
103-
protected SampleCountFlagBits sampledImageStencilSampleCounts;
104-
protected SampleCountFlagBits storageImageSampleCounts;
98+
protected SampleCountFlags sampledImageColorSampleCounts;
99+
protected SampleCountFlags sampledImageIntegerSampleCounts;
100+
protected SampleCountFlags sampledImageDepthSampleCounts;
101+
protected SampleCountFlags sampledImageStencilSampleCounts;
102+
protected SampleCountFlags storageImageSampleCounts;
105103
protected int maxSampleMaskWords;
106104
protected boolean timestampComputeAndGraphics;
107105
protected float timestampPeriod;
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
package com.nucleus.vulkan.structs;
2+
3+
public class SampleCountFlags {
4+
5+
public SampleCountFlags(int bits) {
6+
this.bits = bits;
7+
}
8+
9+
int bits;
10+
}

0 commit comments

Comments
 (0)