Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(711)

Unified Diff: command_buffer/common/cross/gapi_interface.h

Issue 147237: Adding GetStreamInfo functionality (and passing corresponding unit test). (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/o3d/
Patch Set: '' Created 11 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: command_buffer/common/cross/gapi_interface.h
===================================================================
--- command_buffer/common/cross/gapi_interface.h (revision 19749)
+++ command_buffer/common/cross/gapi_interface.h (working copy)
@@ -481,6 +481,34 @@
unsigned int size,
void *data) = 0;
+ // Gets the number of input streams for an effect, returning it in a memory
+ // buffer as a Uint32.
+ // Parameters:
+ // id: the resource ID of the effect.
+ // size: the size of the data buffer. Must be at least 4 (the size of the
+ // Uint32).
+ // data: the buffer receiving the data.
+ // Returns:
+ // BufferSyncInterface::PARSE_INVALID_ARGUMENTS if invalid arguments are
+ // passed, BufferSyncInterface::PARSE_NO_ERROR otherwise.
+ virtual ParseError GetStreamCount(ResourceID id,
+ unsigned int size,
+ void *data) = 0;
+
+ // Gets the stream semantics, storing them in the data buffer. The stream
+ // is described by an effect_stream::Desc structure which contains a
+ // semantic type and a semantic index.
+ // Parameters:
+ // id: the resource ID of the effect.
+ // index: which stream semantic to get
+ // size: the size of the data buffer. Must be at least 8 (the size of two
+ // Uint32).
+ // data: the buffer receiving the data.
+ virtual ParseError GetStreamDesc(ResourceID id,
+ unsigned int index,
+ unsigned int size,
+ void *data) = 0;
+
// Creates a 2D texture resource.
// Parameters:
// id: the resource ID of the texture.

Powered by Google App Engine
This is Rietveld 408576698