Description

1.glsl_type with image was not fully inited with HlslName field set, causing the crash

2.seems many types of op are not support by current hlslcc, cause error msg.

e.g. RWTexture2D.Load[Image Removed]

was no supported in target ps

 

Steps to Reproduce

1.compile the attachment hlsl file using hlslcc_exe, with 

-ps -es31 -entry="PSMain" -o="ttest2.glsl"

2.hlslcc will crash on 

// ir_rvalue* gen_image_op(
const ast_expression *expr,
ir_dereference *image,
exec_list *instructions,
struct _mesa_glsl_parse_state *state)
{
...
bool const bIsByteBuffer = !strcmp(image->type->HlslName, "ByteAddressBuffer");
bool const bIsRWByteBuffer = !strcmp(image->type->HlslName, "RWByteAddressBuffer");
...
}

 

Have Comments or More Details?

There's no existing public thread on this issue, so head over toAnswerHub just mention UE-81620 in the post.

0
Login to Vote

Backlogged
ComponentRendering
Affects Versions4.23
CreatedOct 10, 2019
UpdatedOct 29, 2019