Skip to content

Commit e8ebcb4

Browse files
Update jme3-core/src/main/java/com/jme3/renderer/Renderer.java
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent 51f6c76 commit e8ebcb4

1 file changed

Lines changed: 17 additions & 1 deletion

File tree

jme3-core/src/main/java/com/jme3/renderer/Renderer.java

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -568,11 +568,27 @@ public default Format getBestColorTargetFormat(boolean floatingPoint) {
568568
return getBestColorTargetFormat(floatingPoint, true, false);
569569
}
570570

571+
/**
572+
* Returns the best color target format based on the requested properties and renderer capabilities.
573+
*
574+
* @param floatingPoint true if a floating point format is required.
575+
* @param highPrecision true if high precision (e.g. 16-bit or 32-bit) is preferred over packed formats.
576+
* @param withAlpha true if an alpha channel is required.
577+
* @return the best matching Image.Format.
578+
*/
571579
public default Format getBestColorTargetFormat(boolean floatingPoint, boolean highPrecision, boolean withAlpha) {
572580
return getBestColorTargetFormat(floatingPoint, highPrecision, withAlpha, true);
573581
}
574582

575-
583+
/**
584+
* Returns the best color target format based on the requested properties and renderer capabilities.
585+
*
586+
* @param floatingPoint true if a floating point format is required.
587+
* @param highPrecision true if high precision (e.g. 16-bit or 32-bit) is preferred over packed formats.
588+
* @param withAlpha true if an alpha channel is required.
589+
* @param supportPackedFloat true if packed float formats (e.g. RGB111110F) are allowed.
590+
* @return the best matching Image.Format.
591+
*/
576592
public default Format getBestColorTargetFormat(boolean floatingPoint, boolean highPrecision, boolean withAlpha, boolean supportPackedFloat) {
577593
if (!floatingPoint) {
578594
return Format.RGBA8;

0 commit comments

Comments
 (0)