thatcosmonaut / FNA3D

FNA3D - 3D Graphics Library for FNA
http://fna-xna.github.io/
Other
4 stars 2 forks source link

Vertex shader primitive type mismatch #63

Closed thatcosmonaut closed 4 years ago

thatcosmonaut commented 4 years ago

Running Murder Miners spits out the following errors:

UNASSIGNED-CoreValidation-Shader-InterfaceTypeMismatch(ERROR / SPEC): msgNum: -1227934722 - Validation Error: [ UNASSIGNED-CoreValidation-Shader-InterfaceTypeMismatch ] Object 0: handle = 0x4500000000450, type = VK_OBJECT_TYPE_SHADER_MODULE; | MessageID = 0xb6cf33fe | Attribute type of `VK_FORMAT_R8G8B8A8_UINT` at location 3 does not match vertex shader input type of `ptr to input vec4 of float32`
    Objects: 1
        [0] 0x4500000000450, type: 15, name: NULL
UNASSIGNED-CoreValidation-Shader-InterfaceTypeMismatch(ERROR / SPEC): msgNum: -1227934722 - Validation Error: [ UNASSIGNED-CoreValidation-Shader-InterfaceTypeMismatch ] Object 0: handle = 0x4500000000450, type = VK_OBJECT_TYPE_SHADER_MODULE; | MessageID = 0xb6cf33fe | Attribute type of `VK_FORMAT_R8G8B8A8_UINT` at location 3 does not match vertex shader input type of `ptr to input vec4 of float32`
    Objects: 1
        [0] 0x4500000000450, type: 15, name: NULL
UNASSIGNED-CoreValidation-Shader-InterfaceTypeMismatch(ERROR / SPEC): msgNum: -1227934722 - Validation Error: [ UNASSIGNED-CoreValidation-Shader-InterfaceTypeMismatch ] Object 0: handle = 0x4420000000442, type = VK_OBJECT_TYPE_SHADER_MODULE; | MessageID = 0xb6cf33fe | Attribute type of `VK_FORMAT_R8G8B8A8_UINT` at location 0 does not match vertex shader input type of `ptr to input vec4 of float32`
    Objects: 1
        [0] 0x4420000000442, type: 15, name: NULL
UNASSIGNED-CoreValidation-Shader-InterfaceTypeMismatch(ERROR / SPEC): msgNum: -1227934722 - Validation Error: [ UNASSIGNED-CoreValidation-Shader-InterfaceTypeMismatch ] Object 0: handle = 0x4500000000450, type = VK_OBJECT_TYPE_SHADER_MODULE; | MessageID = 0xb6cf33fe | Attribute type of `VK_FORMAT_R8G8B8A8_UINT` at location 3 does not match vertex shader input type of `ptr to input vec4 of float32`
    Objects: 1
        [0] 0x4500000000450, type: 15, name: NULL
UNASSIGNED-CoreValidation-Shader-InterfaceTypeMismatch(ERROR / SPEC): msgNum: -1227934722 - Validation Error: [ UNASSIGNED-CoreValidation-Shader-InterfaceTypeMismatch ] Object 0: handle = 0x1a3e0000001a3e, type = VK_OBJECT_TYPE_SHADER_MODULE; | MessageID = 0xb6cf33fe | Attribute type of `VK_FORMAT_R16G16_SINT` at location 0 does not match vertex shader input type of `ptr to input vec4 of float32`
    Objects: 1
        [0] 0x1a3e0000001a3e, type: 15, name: NULL
UNASSIGNED-CoreValidation-Shader-InterfaceTypeMismatch(ERROR / SPEC): msgNum: -1227934722 - Validation Error: [ UNASSIGNED-CoreValidation-Shader-InterfaceTypeMismatch ] Object 0: handle = 0x4500000000450, type = VK_OBJECT_TYPE_SHADER_MODULE; | MessageID = 0xb6cf33fe | Attribute type of `VK_FORMAT_R8G8B8A8_UINT` at location 3 does not match vertex shader input type of `ptr to input vec4 of float32`
    Objects: 1
        [0] 0x4500000000450, type: 15, name: NULL

We'll most likely need to modify MojoShader to add byte offsets to each vertex attribute so we can swap the token directly, then the module can be passed for compilation.

TheSpydog commented 4 years ago

Fixed by #67