flash.display3D

# Context3DProfile - AS3

Package | flash.display3D
Class | public final class Context3DProfile
Inheritance | Context3DProfile Object

Language Version: | ActionScript 3.0

Runtime Versions: | Flash Player 11.4, AIR 3.4

Defines the values to use for specifying the Context3D profile.

Related API Elements

flash.display.Stage3D.requestContext3D()

Public Properties
Hide Inherited Public Properties
Show Inherited Public Properties

| Property | Defined By
--- | --- | ---
|  | constructor : Object A reference to the class object or constructor function for a given object instance. | Object

Public Methods
Hide Inherited Public Methods
Show Inherited Public Methods

| Method | Defined By
--- | --- | ---
|  | hasOwnProperty(name:String):Boolean Indicates whether an object has a specified property defined. | Object
|  | isPrototypeOf(theClass:Object):Boolean Indicates whether an instance of the Object class is in the prototype chain of the object specified as the parameter. | Object
|  | propertyIsEnumerable(name:String):Boolean Indicates whether the specified property exists and is enumerable. | Object
|  | setPropertyIsEnumerable(name:String, isEnum:Boolean = true):void Sets the availability of a dynamic property for loop operations. | Object
|  | toLocaleString():String Returns the string representation of this object, formatted according to locale-specific conventions. | Object
|  | toString():String Returns the string representation of the specified object. | Object
|  | valueOf():Object Returns the primitive value of the specified object. | Object

Public Constants

| Constant | Defined By
--- | --- | ---
|  | BASELINE : String = "baseline" [static] Use the default feature support profile. | Context3DProfile
|  | BASELINE_CONSTRAINED : String = "baselineConstrained" [static] Use a constrained feature support profile to target older GPUs This profile is primarily targeted at devices that only support PS_2.0 level shaders like the Intel GMA 9xx series. | Context3DProfile
|  | BASELINE_EXTENDED : String = "baselineExtended" [static] Use an extended feature support profile to target newer GPUs which support larger textures This profile increases the maximum 2D Texture and RectangleTexture size to 4096x4096 | Context3DProfile
|  | STANDARD : String = "standard" [static] Use an standard profile to target GPUs which support MRT, AGAL2 and float textures. | Context3DProfile
|  | STANDARD_CONSTRAINED : String = "standardConstrained" [static] Use an standard profile to target GPUs which support AGAL2 and float textures. | Context3DProfile
|  | STANDARD_EXTENDED : String = "standardExtended" [static] Use standard extended profile to target GPUs which support AGAL3 and instanced drawing feature. | Context3DProfile

Constant Detail

### BASELINE

Constant

`public static const BASELINE:String = "baseline"`

Language Version: | ActionScript 3.0

Runtime Versions: | Flash Player 11.4, AIR 3.4

Use the default feature support profile.

This profile most closely resembles Stage3D support used in previous releases.

### BASELINE_CONSTRAINED

Constant

`public static const BASELINE_CONSTRAINED:String = "baselineConstrained"`

Language Version: | ActionScript 3.0

Runtime Versions: | Flash Player 11.4, AIR 3.4

Use a constrained feature support profile to target older GPUs

This profile is primarily targeted at devices that only support PS_2.0 level shaders like the Intel GMA 9xx series. In addition, this mode tries to improve memory bandwidth usage by rendering directly into the back buffer. There are several side effects:

- You are limited to 64 ALU and 32 texture instructions per shader.
- Only four texture read instructions per shader.
- No support for predicate register. This affects sln/sge/seq/sne, which you replace with compound mov/cmp instructions, available with ps_2_0.
- The Context3D back buffer must always be within the bounds of the stage.
- Only one instance of a Context3D running in Constrained profile is allowed within a Flash Player instance.
- Standard display list list rendering is driven by `Context3D.present()` instead of being based on the SWF frame rate. That is, if a Context3D object is active and visible you must call `Context3D.present()` to render the standard display list.
- Reading back from the back buffer through `Context3D.drawToBitmapData()` might include parts of the display list content. Alpha information will be lost.

### BASELINE_EXTENDED

Constant

`public static const BASELINE_EXTENDED:String = "baselineExtended"`

Language Version: | ActionScript 3.0

Runtime Versions: | Flash Player 11.8, AIR 3.8

Use an extended feature support profile to target newer GPUs which support larger textures

This profile increases the maximum 2D Texture and RectangleTexture size to 4096x4096

### STANDARD

Constant

`public static const STANDARD:String = "standard"`

Language Version: | ActionScript 3.0

Runtime Versions: | Flash Player 14.0, AIR 14.0

Use an standard profile to target GPUs which support MRT, AGAL2 and float textures.

This profile supports 4 render targets. Increase AGAL commands and register count. Add float textures.

### STANDARD_CONSTRAINED

Constant

`public static const STANDARD_CONSTRAINED:String = "standardConstrained"`

Language Version: | ActionScript 3.0

Runtime Versions: | Flash Player 16.0, AIR 16.0

Use an standard profile to target GPUs which support AGAL2 and float textures.

This profile is an alternative to standard profile, which removes MRT and a few features in AGAL2 but can reach more GPUs.

### STANDARD_EXTENDED

Constant

`public static const STANDARD_EXTENDED:String = "standardExtended"`

Language Version: | ActionScript 3.0

Runtime Versions: | AIR 17.0

Use standard extended profile to target GPUs which support AGAL3 and instanced drawing feature.

This profile extends the standard profile.

© 2015 Adobe Systems Incorporated. All rights reserved.
Mon Apr 10 2017, 12:28 PM -07:00