; Pela

; Constants -------------------------

; Overrides -------------------------

[TextureOverridePelaHairBlend]
hash = a4e6feef
handling = skip
vb2 = ResourcePelaHairBlend
if DRAW_TYPE == 1
	vb0 = ResourcePelaHairPosition
	draw = 3170, 0
endif
ResourcePelaHairDrawCS = copy ResourcePelaHairDrawCS
if DRAW_TYPE == 8    
	Resource\SRMI\PositionBuffer = ref ResourcePelaHairPositionCS
	Resource\SRMI\BlendBuffer = ref ResourcePelaHairBlendCS
	Resource\SRMI\DrawBuffer = ref ResourcePelaHairDrawCS
	$\SRMI\vertcount = 3170
elif DRAW_TYPE != 1
	$_blend_ = 2
endif

[TextureOverridePelaHairTexcoord]
hash = b7b84af4
vb1 = ResourcePelaHairTexcoord

[TextureOverridePelaHairVertexLimitRaise]
hash = 174a988f
;hash = 18d9ad82
override_vertex_count = 3170
override_byte_stride = 40
if DRAW_TYPE != 8 && DRAW_TYPE != 1 && $_blend_ > 0
	$_blend_ = $_blend_ - 1
	this = ref ResourcePelaHairDrawCS
endif

[TextureOverridePelaBodyBlend]
hash = 5778182b
handling = skip
vb2 = ResourcePelaBodyBlend
if DRAW_TYPE == 1
	vb0 = ResourcePelaBodyPosition
	draw = 27233, 0
endif
;hash = ca538103
ResourcePelaBodyDrawCS = copy ResourcePelaBodyDrawCS
if DRAW_TYPE == 8    
	Resource\SRMI\PositionBuffer = ref ResourcePelaBodyPositionCS
	Resource\SRMI\BlendBuffer = ref ResourcePelaBodyBlendCS
	Resource\SRMI\DrawBuffer = ref ResourcePelaBodyDrawCS
	$\SRMI\vertcount = 27233
elif DRAW_TYPE != 1
	$_blend_ = 2
endif

[TextureOverridePelaBodyTexcoord]
hash = 77a2f3bf
vb1 = ResourcePelaBodyTexcoord

[TextureOverridePelaBodyVertexLimitRaise]
hash = 7637086e
;hash = 79a43d63
override_vertex_count = 27233
override_byte_stride = 40
if DRAW_TYPE != 8 && DRAW_TYPE != 1 && $_blend_ > 0
	$_blend_ = $_blend_ - 1
	this = ref ResourcePelaBodyDrawCS
endif

[TextureOverridePelaHairIB]
hash = 16e76a8a
handling = skip
drawindexed = auto

[TextureOverridePelaHairA]
hash = 16e76a8a
match_first_index = 0
ib = ResourcePelaHairAIB

[TextureOverridePelaHairADiffuse]
hash = 7fcd70ea
;hash = 934172e5
this = ResourcePelaHairADiffuse

[TextureOverridePelaHairALightMap]
hash = 93279a4a
;hash = 54a11a98
this = ResourcePelaHairALightMap

[TextureOverridePelaBodyIB]
hash = 98dbd548
handling = skip
drawindexed = auto

[TextureOverridePelaBodyA]
hash = 98dbd548
match_first_index = 44043
ib = ResourcePelaBodyAIB

[TextureOverridePelaBodyADiffuse]
hash = 48fca7f8
;hash = e02d100c
this = ResourcePelaBodyADiffuse

[TextureOverridePelaBodyALightMap]
hash = 21d34147
;hash = ffeb1d46
this = ResourcePelaBodyALightMap

; CommandList -----------------------

; Resources -------------------------

[ResourcePelaHairPosition]
type = Buffer
stride = 40
filename = PelaHairPosition.buf

[ResourcePelaHairBlend]
type = Buffer
stride = 32
filename = PelaHairBlend.buf

[ResourcePelaHairTexcoord]
type = Buffer
stride = 8
filename = PelaHairTexcoord.buf

[ResourcePelaBodyPosition]
type = Buffer
stride = 40
filename = PelaBodyPosition.buf

[ResourcePelaBodyBlend]
type = Buffer
stride = 32
filename = PelaBodyBlend.buf

[ResourcePelaBodyTexcoord]
type = Buffer
stride = 20
filename = PelaBodyTexcoord.buf

[ResourcePelaHairAIB]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = PelaHairA.ib

[ResourcePelaBodyAIB]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = PelaBodyA.ib

[ResourcePelaHairADiffuse]
filename = PelaHairADiffuse.dds

[ResourcePelaHairALightMap]
filename = PelaHairALightMap.dds

[ResourcePelaBodyADiffuse]
filename = PelaBodyADiffuse.dds

[ResourcePelaBodyALightMap]
filename = PelaBodyALightMap.dds


; .ini generated by GIMI (Genshin-Impact-Model-Importer)
; If you have any issues or find any bugs, please open a ticket at https://github.com/SilentNightSound/GI-Model-Importer/issues or contact SilentNightSound#7430 on discord

[TextureOverride20fixA]
hash = 98dbd548
match_first_index = 0
ib = null

[Constants]
global $_blend_ = 0

; -------------------- Auto-generated CS resources --------------------

[ResourcePelaHairDrawCS]
type = RWStructuredBuffer
array = 3170
data = R32_FLOAT 1 2 3 4 5 6 7 8 9 10

[ResourcePelaHairPositionCS]
type = StructuredBuffer
stride = 40
filename = PelaHairPosition.buf

[ResourcePelaHairBlendCS]
type = StructuredBuffer
stride = 32
filename = PelaHairBlend.buf

[ResourcePelaBodyDrawCS]
type = RWStructuredBuffer
array = 27233
data = R32_FLOAT 1 2 3 4 5 6 7 8 9 10

[ResourcePelaBodyPositionCS]
type = StructuredBuffer
stride = 40
filename = PelaBodyPosition.buf

[ResourcePelaBodyBlendCS]
type = StructuredBuffer
stride = 32
filename = PelaBodyBlend.buf

