GetStream
Function Usage
Creates a stream handle so that the goldfish-opengl component can identify the APIs exposed by the instruction stream engine through the stream handle.
Prototype
uint32_t GetStream();
Returns
Data type: uint32_t
The value can be:
- Greater than 0: The stream handle is successfully created.
- 0: Failed to create a stream handle.
Example Call
void Test()
{
uint32_t streamHandle = GetStream();
if (streamHandle > 0) {
// The stream handle is successfully created.
...
} else {
// Failed to create the stream handle.
}
}
Parent topic: Stream API