-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
413 additions
and
237 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
53 changes: 53 additions & 0 deletions
53
jme3-core/src/main/java/com/jme3/renderer/framegraph/Access.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
/* | ||
* Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license | ||
* Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template | ||
*/ | ||
package com.jme3.renderer.framegraph; | ||
|
||
/** | ||
* | ||
* @author codex | ||
*/ | ||
public enum Access { | ||
|
||
/** | ||
* Indicates that the resource is accessed for reading only. | ||
*/ | ||
Read(true, false), | ||
|
||
/** | ||
* Indicates that the resource is accessed for writing only. | ||
*/ | ||
Write(false, true), | ||
|
||
/** | ||
* Indicates that the resource is accessed for both reading and writing. | ||
*/ | ||
ReadAndWrite(true, true); | ||
|
||
private final boolean read, write; | ||
|
||
private Access(boolean read, boolean write) { | ||
this.read = read; | ||
this.write = write; | ||
} | ||
|
||
/** | ||
* Returns true if the access is for reading. | ||
* | ||
* @return | ||
*/ | ||
public boolean isRead() { | ||
return read; | ||
} | ||
|
||
/** | ||
* Returns true if the access is for writing. | ||
* | ||
* @return | ||
*/ | ||
public boolean isWrite() { | ||
return write; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.