Skip to content

Commit

Permalink
Add GL.hx ssbos changes to mesa
Browse files Browse the repository at this point in the history
  • Loading branch information
yuxiaomao committed Aug 29, 2024
1 parent 0cf8625 commit 9888913
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions libs/mesa/mesa/GL.hx
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,19 @@ class GL {
public static function uniformBlockBinding( p : Program, blockIndex : Int, blockBinding : Int ) : Void {
}

// ssbos

/** Requires OpenGL 4.3+, therefore not supported on Apple platforms **/
@:hlNative("?mesa","gl_get_program_resource_index")
public static function getProgramResourceIndex( p : Program, type : Int, name : String ) : Int {
return 0;
}

/** Requires OpenGL 4.3+, therefore not supported on Apple platforms **/
@:hlNative("?mesa","gl_shader_storage_block_binding")
public static function shaderStorageBlockBinding( p : Program, blockIndex : Int, blockBinding : Int ) : Void {
}

// ----- CONSTANTS -----

/* ClearBufferMask */
Expand Down Expand Up @@ -502,6 +515,8 @@ class GL {
public static inline var UNIFORM_BUFFER = 0x8A11;
public static inline var QUERY_BUFFER = 0x9192;

public static inline var SHADER_STORAGE_BLOCK = 0x92E6;

public static inline var STREAM_DRAW = 0x88E0;
public static inline var STATIC_DRAW = 0x88E4;
public static inline var DYNAMIC_DRAW = 0x88E8;
Expand Down

0 comments on commit 9888913

Please sign in to comment.