class SceneSwapchain
SceneSwapchain
(
handle
)
:
SceneSwapchain |
handle
:
Long
[Get] |
Signature
var handle: Long |
destroy
()
|
Signature
fun destroy() |
getSurface
()
:
Surface?
|
Gets the Android Surface associated with this swapchain.
The returned Surface can be used for drawing content that will be displayed through this swapchain.
Signature
fun getSurface(): Surface? Returns
Surface?
|
nativeHandle
()
:
Long
|
Signature
fun nativeHandle(): Long Returns
Long
|
platformHandle
()
:
Long
|
Signature
fun platformHandle(): Long Returns
Long
|
updateSampler
(
sampler
)
|
Updates the sampler configuration for this swapchain.
The sampler controls how textures are filtered and addressed when rendered.
Signature
fun updateSampler(sampler: SamplerConfig) Parameters
sampler:
SamplerConfig |
create
(
width
,
height
,
numberOfMips
)
:
SceneSwapchain |
Creates a standard swapchain for rendering.
This type of swapchain is suitable for general rendering purposes and can be used with SceneLayer objects.
Signature
fun create(width: Int, height: Int, numberOfMips: Int): SceneSwapchain Parameters
width:
Int
height:
Int
numberOfMips:
Int
|
createAsAndroid
(
width
,
height
,
isProtected
)
:
SceneSwapchain |
Creates a swapchain that is automatically updated when the associated Android Surface is updated. This is what is used in "direct-to-compositor" layer Panels and will be used when you do not require a SceneTexture. It is generally a more performant option and optionally allows for secure/DRM content to be played.
Signature
fun createAsAndroid(width: Int, height: Int, isProtected: Boolean = false): SceneSwapchain Parameters
width:
Int
height:
Int
isProtected:
Boolean
|