diff --git a/generate.sh b/generate.sh old mode 100644 new mode 100755 diff --git a/gpuctypes/hip.py b/gpuctypes/hip.py index 70c1b51..41a5239 100644 --- a/gpuctypes/hip.py +++ b/gpuctypes/hip.py @@ -1272,6 +1272,14 @@ class struct_hipResourceDesc(Structure): class union_hipResourceDesc_res(Union): pass +class struct_hipResourceDesc_0_array(Structure): + pass + +struct_hipResourceDesc_0_array._pack_ = 1 # source:False +struct_hipResourceDesc_0_array._fields_ = [ + ('array', ctypes.POINTER(struct_hipArray)), +] + class struct_hipResourceDesc_0_linear(Structure): pass @@ -1304,14 +1312,6 @@ class struct_hipResourceDesc_0_mipmap(Structure): ('mipmap', ctypes.POINTER(struct_hipMipmappedArray)), ] -class struct_hipResourceDesc_0_array(Structure): - pass - -struct_hipResourceDesc_0_array._pack_ = 1 # source:False -struct_hipResourceDesc_0_array._fields_ = [ - ('array', ctypes.POINTER(struct_hipArray)), -] - union_hipResourceDesc_res._pack_ = 1 # source:False union_hipResourceDesc_res._fields_ = [ ('array', struct_hipResourceDesc_0_array), @@ -1334,6 +1334,25 @@ class struct_HIP_RESOURCE_DESC_st(Structure): class union_HIP_RESOURCE_DESC_st_res(Union): pass +class struct_HIP_RESOURCE_DESC_st_0_array(Structure): + pass + +struct_HIP_RESOURCE_DESC_st_0_array._pack_ = 1 # source:False +struct_HIP_RESOURCE_DESC_st_0_array._fields_ = [ + ('hArray', ctypes.POINTER(struct_hipArray)), +] + +class struct_HIP_RESOURCE_DESC_st_0_linear(Structure): + pass + +struct_HIP_RESOURCE_DESC_st_0_linear._pack_ = 1 # source:False +struct_HIP_RESOURCE_DESC_st_0_linear._fields_ = [ + ('devPtr', ctypes.POINTER(None)), + ('format', hipArray_Format), + ('numChannels', ctypes.c_uint32), + ('sizeInBytes', ctypes.c_uint64), +] + class struct_HIP_RESOURCE_DESC_st_0_pitch2D(Structure): pass @@ -1363,25 +1382,6 @@ class struct_HIP_RESOURCE_DESC_st_0_mipmap(Structure): ('hMipmappedArray', ctypes.POINTER(struct_hipMipmappedArray)), ] -class struct_HIP_RESOURCE_DESC_st_0_array(Structure): - pass - -struct_HIP_RESOURCE_DESC_st_0_array._pack_ = 1 # source:False -struct_HIP_RESOURCE_DESC_st_0_array._fields_ = [ - ('hArray', ctypes.POINTER(struct_hipArray)), -] - -class struct_HIP_RESOURCE_DESC_st_0_linear(Structure): - pass - -struct_HIP_RESOURCE_DESC_st_0_linear._pack_ = 1 # source:False -struct_HIP_RESOURCE_DESC_st_0_linear._fields_ = [ - ('devPtr', ctypes.POINTER(None)), - ('format', hipArray_Format), - ('numChannels', ctypes.c_uint32), - ('sizeInBytes', ctypes.c_uint64), -] - union_HIP_RESOURCE_DESC_st_res._pack_ = 1 # source:False union_HIP_RESOURCE_DESC_st_res._fields_ = [ ('array', struct_HIP_RESOURCE_DESC_st_0_array), @@ -3248,6 +3248,15 @@ class struct___hip_texture(Structure): pass +# values for enumeration 'hipTextureFilterMode' +hipTextureFilterMode__enumvalues = { + 0: 'hipFilterModePoint', + 1: 'hipFilterModeLinear', +} +hipFilterModePoint = 0 +hipFilterModeLinear = 1 +hipTextureFilterMode = ctypes.c_uint32 # enum + # values for enumeration 'hipTextureAddressMode' hipTextureAddressMode__enumvalues = { 0: 'hipAddressModeWrap', @@ -3269,15 +3278,6 @@ class struct___hip_texture(Structure): hipReadModeElementType = 0 hipReadModeNormalizedFloat = 1 hipTextureReadMode = ctypes.c_uint32 # enum - -# values for enumeration 'hipTextureFilterMode' -hipTextureFilterMode__enumvalues = { - 0: 'hipFilterModePoint', - 1: 'hipFilterModeLinear', -} -hipFilterModePoint = 0 -hipFilterModeLinear = 1 -hipTextureFilterMode = ctypes.c_uint32 # enum struct_textureReference._pack_ = 1 # source:False struct_textureReference._fields_ = [ ('normalized', ctypes.c_int32),