Skip to content
Draft

Vulkan #2545

Changes from 1 commit
Commits
Show all changes
98 commits
Select commit Hold shift + click to select a range
d2315be
added AlertArmatureMask
codex128 Jul 24, 2023
2f1dae8
fixed docs and added another helper
codex128 Jul 24, 2023
a750f1c
made it easier to turn off priority checking
codex128 Jul 24, 2023
cd876d4
removed copy methods
codex128 Jul 25, 2023
9c9c2d8
updated license
codex128 Jan 19, 2024
83c95e5
updated javadoc
codex128 Jan 20, 2024
90e6cd8
renamed mask
codex128 Jan 21, 2024
0f410c0
Merge branch 'jMonkeyEngine:master' into master
codex128 Feb 29, 2024
9cf7dc4
Merge branch 'jMonkeyEngine:master' into master
codex128 Jun 7, 2024
7efa4c6
Merge remote-tracking branch 'origin/master'
codex128 Apr 26, 2025
0e25de2
Merge remote-tracking branch 'origin/master'
codex128 Jun 22, 2025
0c2d187
create vulkan context and prototyped vulkan instance creation in a te…
codex128 Jun 24, 2025
061a782
vulkan logical device
codex128 Jun 24, 2025
1b9f2e3
vulkan logical device
codex128 Jun 24, 2025
863e6a9
create interface over vulkan API
codex128 Jul 3, 2025
1b2ee3d
debug initial vulkan engine interface
codex128 Jul 27, 2025
e82ab06
debug initial vulkan engine interface
codex128 Jul 27, 2025
5aa391e
add shader attributes and gpu buffers
codex128 Jul 28, 2025
adb4e01
add uniforms; fix native crash and memory leaks
codex128 Aug 1, 2025
8e7ff36
added depth testing; added enums for image properties
codex128 Aug 1, 2025
beba5fe
added depth testing; added enums for image properties
codex128 Aug 1, 2025
4e31f0d
migrated instance, device, surface, and swapchain to new builder arc…
codex128 Aug 3, 2025
5f7d1ec
migrated instance, device, surface, and swapchain to new builder arc…
codex128 Aug 3, 2025
c4738ee
successfully abstracted all vulkan components
codex128 Aug 6, 2025
e0efc40
successfully abstracted all vulkan components
codex128 Aug 6, 2025
0c035ab
organized files
codex128 Aug 9, 2025
6a3171c
added MemorySize for clarity in allocating buffer sizes
codex128 Aug 9, 2025
bcb7014
managed to create acceptable prototype material system (still much to…
codex128 Aug 13, 2025
b168553
managed to create acceptable prototype material system (still much to…
codex128 Aug 13, 2025
6c0dbaf
altered material system slightly
codex128 Aug 13, 2025
f7d3679
basic material system is working
codex128 Aug 13, 2025
62882d4
basic material system is working
codex128 Aug 13, 2025
4a1970f
add device interfaces for different queue types
codex128 Aug 14, 2025
521c8a7
move pool management to logical device
codex128 Aug 14, 2025
a00411b
add stage mask to semaphores
codex128 Aug 15, 2025
d0340ab
figure out uniform details
codex128 Aug 16, 2025
ab0de0e
add Flag interface to handle bit flags
codex128 Aug 19, 2025
6657009
fix build error
codex128 Aug 19, 2025
72b0156
fix json error
codex128 Aug 19, 2025
ed6096e
extract GpuBuffer into an interface; create VersionedBuffer in prepar…
codex128 Aug 19, 2025
5587e17
fix build errors related to GpuBuffer interface extraction
codex128 Aug 19, 2025
6f97ff5
alter material system to support versions of resources per frame-in-f…
codex128 Aug 24, 2025
d4646f6
fix build and runtime errors (new material system is operational)
codex128 Aug 24, 2025
42a845a
fix warning on DescriptorSet destruction for DescriptorPools not crea…
codex128 Aug 24, 2025
ba4ea7f
use Flag for CommandPool creation instead of booleans
codex128 Aug 24, 2025
56a0a42
prototype meshes; improve usability; abstract images and buffers in p…
codex128 Aug 30, 2025
e29d2a9
fix image loader key type
codex128 Aug 30, 2025
85b3d95
mess around with meshes more
codex128 Sep 1, 2025
669ce8f
have uniforms use Resources/DataPipelines instead of VersionedResources
codex128 Sep 1, 2025
0fc9137
have uniforms use Resources/DataPipelines instead of VersionedResources
codex128 Sep 1, 2025
ab434fd
have uniforms use Resources/DataPipelines instead of VersionedResources
codex128 Sep 2, 2025
97750fd
simplified handling of DataPipe results by uniforms
codex128 Sep 2, 2025
bb7ab46
completed AdaptiveMesh; added CommandBatch system to properly update …
codex128 Sep 9, 2025
3099a26
fix vertex shader producing an unused varying
codex128 Sep 9, 2025
4756c04
rename updateStaticBuffers to updateSharedBuffers
codex128 Sep 9, 2025
519301e
add enum to represent common attribute names
codex128 Sep 9, 2025
20a2120
improve pipeline and sampler usability
codex128 Sep 9, 2025
2f3f8c5
improve pipeline and sampler usability
codex128 Sep 9, 2025
42d7525
preparing to alter Spatial
codex128 Sep 11, 2025
cb5c47a
move vulkan to core
codex128 Sep 12, 2025
29c1818
temporarily renamed Mesh to GLMesh to not conflict with the new Mesh …
codex128 Sep 12, 2025
1718bbf
Revert "temporarily renamed Mesh to GLMesh to not conflict with the n…
codex128 Sep 12, 2025
7fee9d2
temporarily renamed Mesh to GLMesh to not conflict with the new Mesh …
codex128 Sep 12, 2025
301b6bc
Revert "temporarily renamed Mesh to GLMesh to not conflict with the n…
codex128 Sep 12, 2025
e28d4df
Revert "Revert "temporarily renamed Mesh to GLMesh to not conflict wi…
codex128 Sep 12, 2025
d463d9c
Revert "temporarily renamed Mesh to GLMesh to not conflict with the n…
codex128 Sep 12, 2025
e3ee8be
Revert "Revert "temporarily renamed Mesh to GLMesh to not conflict wi…
codex128 Sep 12, 2025
65c076e
renamed new Mesh interface to NewMesh to not conflict with existing M…
codex128 Sep 12, 2025
115a985
renamed GLMesh back to Mesh
codex128 Sep 12, 2025
268988b
add BackedStaticBuffer
codex128 Sep 12, 2025
f23c5c8
make BIHTree compatible with NewMesh
codex128 Sep 12, 2025
c388da8
made BoundingVolume accept VertexReaders for computeFromPoints
codex128 Sep 13, 2025
e871c05
Geometry accepts NewMesh without errors
codex128 Sep 13, 2025
bc4ce97
Geometry accepts NewMesh without errors
codex128 Sep 13, 2025
d2e37e5
renamed vulkan material to NewMaterial
codex128 Sep 13, 2025
ef41a34
delete VertexModifier interface
codex128 Sep 13, 2025
1c45ac6
made Spatial iterable
codex128 Sep 13, 2025
49cc7f2
made Spatial iterable
codex128 Sep 13, 2025
1e2926d
setup vulkan test for rendering from the scene graph
codex128 Sep 13, 2025
a7c2f09
moved Mesh code to OldMesh; replaced NewMesh with Mesh, which has bee…
codex128 Sep 13, 2025
bd21a20
moved previous Mesh extensions to extend OldMesh
codex128 Sep 13, 2025
050e1df
moved Material to OldMaterial
codex128 Sep 13, 2025
93067db
renamed Texture to GlTexture and Image to GlImage, both implementing …
codex128 Sep 14, 2025
fe84d1e
added methods to Material interface for compatibility with old GlMate…
codex128 Sep 16, 2025
7e1f760
fix several incompatibilities
codex128 Sep 17, 2025
d3860c6
added GeometryBatch to cleanly and optimally handling renders; a lot …
codex128 Oct 10, 2025
ab514b7
added GeometryBatch to cleanly and optimally handling renders; a lot …
codex128 Oct 10, 2025
ebf9528
split Vulkan and OpenGL APIs on GeometryBatch
codex128 Oct 11, 2025
154d3ab
fixed build errors in GlVertexBuffer
codex128 Oct 11, 2025
d8dd146
changed command paradigm again; improved material set selection proce…
codex128 Oct 15, 2025
381b05d
start using Jackson to parse yaml matdefs
codex128 Oct 17, 2025
98163af
drafted a PipelineState system that I actually like and that will act…
codex128 Oct 18, 2025
eb7a6f1
drafted a PipelineState system that I actually like and that will act…
codex128 Oct 28, 2025
38b2ef2
deleted old deprecated animation system
codex128 Oct 28, 2025
c8db583
fixed build problems caused by new API
codex128 Oct 29, 2025
a574018
fix build problems, especially relating to FrameBuffers
codex128 Nov 1, 2025
b35e045
working on yet another rewrite of the mesh system
codex128 Nov 21, 2025
7235be7
working on yet another rewrite of the mesh system
codex128 Nov 21, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
updated javadoc
  • Loading branch information
codex128 committed Jan 20, 2024
commit 83c95e504b8d043e6d0f96f0ccd046d2e3429b1c
43 changes: 24 additions & 19 deletions jme3-core/src/main/java/com/jme3/anim/AlertArmatureMask.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,8 @@
import com.jme3.scene.Spatial;

/**
* Extension of {@link ArmatureMask}.
*
* <p>Provides a feature which checks higher layers for joint use before it
* approves the layer to use a joint.
* Mask that excludes joints from participating in the layer
* if a higher layer is using those joints in an animation.
*
* @author codex
*/
Expand All @@ -49,7 +47,7 @@ public class AlertArmatureMask extends ArmatureMask {
private boolean checkUpperLayers = true;

/**
* @param layer The layer this mask is targeted for. It is extremely important
* @param layer The layer this mask is targeted for. It is important
* that this match the name of the layer this mask is (or will be) part of. You
* can use {@link makeLayer} to ensure this.
* @param spatial Spatial containing necessary controls ({@link AnimComposer} and {@link SkinningControl})
Expand All @@ -60,6 +58,13 @@ public AlertArmatureMask(String layer, Spatial spatial) {
anim = spatial.getControl(AnimComposer.class);
skin = spatial.getControl(SkinningControl.class);
}
/**
* @param layer The layer this mask is targeted for. It is important
* that this match the name of the layer this mask is (or will be) part of. You
* can use {@link makeLayer} to ensure this.
* @param anim anim composer this mask is assigned to
* @param skin skinning control complimenting the anim composer.
*/
public AlertArmatureMask(String layer, AnimComposer anim, SkinningControl skin) {
super();
this.layer = layer;
Expand All @@ -68,15 +73,15 @@ public AlertArmatureMask(String layer, AnimComposer anim, SkinningControl skin)
}

/**
* Makes a layer for this mask.
* Makes a layer from this mask.
*/
public void makeLayer() {
anim.makeLayer(layer, this);
}

/**
* Adds all joints to this mask.
* @return
* @return this.instance
*/
public AlertArmatureMask addAll() {
for (Joint j : skin.getArmature().getJointList()) {
Expand All @@ -88,7 +93,7 @@ public AlertArmatureMask addAll() {
/**
* Adds the given joint and all its children to this mask.
* @param joint
* @return
* @return this instance
*/
public AlertArmatureMask addFromJoint(String joint) {
super.addFromJoint(skin.getArmature(), joint);
Expand All @@ -98,7 +103,7 @@ public AlertArmatureMask addFromJoint(String joint) {
/**
* Adds the given joints to this mask.
* @param joints
* @return
* @return this instance
*/
public AlertArmatureMask addJoints(String... joints) {
super.addBones(skin.getArmature(), joints);
Expand All @@ -111,7 +116,7 @@ public AlertArmatureMask addJoints(String... joints) {
* <p>Not checking is more efficient, but checking can avoid some
* interpolation issues between layers. Default=true
* @param check
* @return
* @return this instance
*/
public AlertArmatureMask setCheckUpperLayers(boolean check) {
checkUpperLayers = check;
Expand All @@ -131,15 +136,15 @@ public String getTargetLayer() {

/**
* Get the {@link AnimComposer} this mask is for.
* @return
* @return anim composer
*/
public AnimComposer getAnimComposer() {
return anim;
}

/**
* Get the {@link SkinningControl} this mask is for.
* @return
* @return skinning control
*/
public SkinningControl getSkinningControl() {
return skin;
Expand Down Expand Up @@ -190,20 +195,20 @@ else if (lyr.getMask().contains(target)) {

/**
* Creates an {@code AlertArmatureMask} for all joints.
* @param layer
* @param spatial
* @return
* @param layer layer the returned mask is, or will be, be assigned to
* @param spatial spatial containing anim composer and skinning control
* @return new mask
*/
public static AlertArmatureMask all(String layer, Spatial spatial) {
return new AlertArmatureMask(layer, spatial).addAll();
}

/**
* Creates an {@code AlertArmatureMask} for all joints.
* @param layer
* @param anim
* @param skin
* @return
* @param layer layer the returned mask is, or will be, assigned to
* @param anim anim composer
* @param skin skinning control
* @return new mask
*/
public static AlertArmatureMask all(String layer, AnimComposer anim, SkinningControl skin) {
return new AlertArmatureMask(layer, anim, skin).addAll();
Expand Down