RuntimeShader Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| RuntimeShader(String) |
Creates a new RuntimeShader. |
| RuntimeShader(IntPtr, JniHandleOwnership) |
Creates a managed instance that represents an existing Java object. |
RuntimeShader(String)
Creates a new RuntimeShader.
[Android.Runtime.Register(".ctor", "(Ljava/lang/String;)V", "", ApiSince=33)]
public RuntimeShader(string shader);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;)V", "", ApiSince=33)>]
new Android.Graphics.RuntimeShader : string -> Android.Graphics.RuntimeShader
Parameters
- shader
- String
The text of AGSL shader program to run.
- Attributes
Remarks
Creates a new RuntimeShader.
Java documentation for android.graphics.RuntimeShader.RuntimeShader(java.lang.String).
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
RuntimeShader(IntPtr, JniHandleOwnership)
Creates a managed instance that represents an existing Java object.
protected RuntimeShader(IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Graphics.RuntimeShader : nativeint * Android.Runtime.JniHandleOwnership -> Android.Graphics.RuntimeShader
Parameters
- javaReference
-
IntPtr
nativeint
A JNI reference to the Java object.
- transfer
- JniHandleOwnership
Specifies whether ownership of the JNI reference transfers to this instance.
Remarks
The runtime calls this constructor to create a managed representation of an existing Java object.