A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developers.google.com/vr/reference/android/com/google/vr/ndk/base/BufferSpec below:

BufferSpec | Google VR | Google for Developers

BufferSpec

Stay organized with collections Save and categorize content based on your preferences.

Specification of a pixel buffer. A pixel buffer can have color, depth and stencil attachments and mostly corresponds to the OpenGL concept of a framebuffer object. However, since there can be multiple such objects for each frame, we avoid calling them "framebuffers". Pixel buffers which are part of the currently acquired frame are immutable, i.e., they cannot be resized or otherwise reconfigured.

Nested Classes Public Methods int getSamples

()

Gets the number of samples per pixel in the buffer to be created.

void getSize

(

Point

bufferSizeOut)

Gets the size of the buffer to be created.

static boolean static boolean void setColorFormat

(int format)

Sets the format of the color attachment for the buffer to be created.

void setDepthStencilFormat

(int format)

Sets the format of the packed depth-stencil attachment for the buffer to be created.

void setMultiviewLayers

(int numLayers)

Sets the number of layers in a framebuffer backed by an array texture.

void setSamples

(int samples)

Sets the number of samples per pixel in the buffer to be created.

void setSize

(

Point

bufferSize)

Sets the size of the buffer to be created.

void shutdown

()

Shuts down the BufferSpec instance, freeing associated resources.

Inherited Methods From class java.lang.Object boolean final Class<?>

getClass()

int

hashCode()

final void

notify()

final void

notifyAll()

String

toString()

final void

wait(long arg0, int arg1)

final void

wait(long arg0)

final void

wait()

Public Methods public int getSamples ()

Gets the number of samples per pixel in the buffer to be created.

Returns public void getSize (Point bufferSizeOut)

Gets the size of the buffer to be created.

Parameters bufferSizeOut The (output) size of the pixel buffer. The default is equal to the recommended render target size at the time when the specification was created. public static boolean isValidColorFormat (int format)

Checks if the given integer is a legal color format.

public static boolean isValidDepthStencilFormat (int format)

Checks if the given integer is a legal depth-stencil format.

public void setColorFormat (int format)

Sets the format of the color attachment for the buffer to be created.

public void setDepthStencilFormat (int format)

Sets the format of the packed depth-stencil attachment for the buffer to be created.

public void setMultiviewLayers (int numLayers)

Sets the number of layers in a framebuffer backed by an array texture. Default is 1, which means a non-layered texture will be created. Not all platforms support multiple layers, so clients can call GvrApi.isFeatureSupported(GvrApi.Feature.MULTIVIEW) to check.

Parameters numLayers The number of layers in the array texture. public void setSamples (int samples)

Sets the number of samples per pixel in the buffer to be created.

Parameters samples The number of samples. Negative values are an error. The values 0 and 1 are treated identically and indicate that multisampling should be disabled. public void setSize (Point bufferSize)

Sets the size of the buffer to be created.

Parameters bufferSize The size. Width and height must both be greater than zero. Otherwise, the application is aborted. public void shutdown ()

Shuts down the BufferSpec instance, freeing associated resources.

Note: The caller is responsible for ensuring that this BufferSpec isn't used after shutdown.

All rights reserved. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2024-10-09 UTC.

[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-09 UTC."],[[["`BufferSpec` defines the properties of a pixel buffer, similar to an OpenGL framebuffer object, used for color, depth, and stencil attachments."],["Pixel buffers within an acquired frame are immutable and cannot be resized or reconfigured."],["`BufferSpec` allows developers to specify the color format, depth-stencil format, size, and multisampling settings of the buffer."],["Developers can use methods like `setColorFormat`, `setDepthStencilFormat`, `setSize`, and `setSamples` to configure the buffer's properties."],["`BufferSpec` must be shut down using the `shutdown` method to release associated resources when no longer needed."]]],["`BufferSpec` defines pixel buffer specifications, resembling OpenGL's framebuffer objects. Key actions include setting and getting buffer attributes: `setSize` sets the buffer's dimensions, `setSamples` sets samples per pixel, `setColorFormat` and `setDepthStencilFormat` define attachment formats, and `setMultiviewLayers` configures layered textures. `getSamples` and `getSize` retrieve buffer details. `isValidColorFormat` and `isValidDepthStencilFormat` validate formats, and `shutdown` releases resources. BufferSpec instances are immutable if they are part of a currently acquired frame.\n"]]


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4