Added support for Bindless texture extension,
64 bit uniforms, 64 bit buffers Added new bindless texture example
This commit is contained in:
@@ -33,6 +33,7 @@ const int CHAR_SIZE = 1;
|
||||
const int SHORT_SIZE = 2;
|
||||
const int INT_SIZE = 4;
|
||||
const int LONG_SIZE = 4;
|
||||
const int INT64_SIZE = 8;
|
||||
const int FLOAT_SIZE = 4;
|
||||
const int DOUBLE_SIZE = 8;
|
||||
const int GLENUM_SIZE = 4;
|
||||
@@ -71,6 +72,9 @@ const int ID_VEC2UI_ARRAY = 29;
|
||||
const int ID_VEC3UI_ARRAY = 30;
|
||||
const int ID_VEC4UI_ARRAY = 31;
|
||||
|
||||
const int ID_UINT64_ARRAY = 32;
|
||||
const int ID_INT64_ARRAY = 33;
|
||||
|
||||
const int ID_DRAWARRAYS = 50;
|
||||
const int ID_DRAWARRAY_LENGTH = 51;
|
||||
const int ID_DRAWELEMENTS_UBYTE = 52;
|
||||
|
||||
@@ -102,6 +102,8 @@ public:
|
||||
OutputStream& operator<<( unsigned long l ) { _out->writeULong(l); return *this; }
|
||||
OutputStream& operator<<( float f ) { _out->writeFloat(f); return *this; }
|
||||
OutputStream& operator<<( double d ) { _out->writeDouble(d); return *this; }
|
||||
OutputStream& operator<<( long long ll ) { _out->writeInt64(ll); return *this; }
|
||||
OutputStream& operator<<( unsigned long long ull ) { _out->writeUInt64(ull); return *this; }
|
||||
OutputStream& operator<<( const std::string& s ) { _out->writeString(s); return *this; }
|
||||
OutputStream& operator<<( const char* s ) { _out->writeString(s); return *this; }
|
||||
OutputStream& operator<<( std::ostream& (*fn)(std::ostream&) ) { _out->writeStream(fn); return *this; }
|
||||
|
||||
@@ -37,6 +37,8 @@ public:
|
||||
virtual void writeUInt( unsigned int i ) = 0;
|
||||
virtual void writeLong( long l ) = 0;
|
||||
virtual void writeULong( unsigned long l ) = 0;
|
||||
virtual void writeInt64( int64_t ll ) = 0;
|
||||
virtual void writeUInt64( uint64_t ull ) = 0;
|
||||
virtual void writeFloat( float f ) = 0;
|
||||
virtual void writeDouble( double d ) = 0;
|
||||
virtual void writeString( const std::string& s ) = 0;
|
||||
|
||||
Reference in New Issue
Block a user