public static HullShaderMaxTessFactorDeclarationToken Parse(BytecodeReader reader) { var token0 = reader.ReadUInt32(); return(new HullShaderMaxTessFactorDeclarationToken { MaxTessFactor = reader.ReadSingle() }); }
public static StaticSampler Parse(BytecodeReader reader) { return(new StaticSampler() { Filter = (Filter)reader.ReadUInt32(), AddressU = (TextureAddressMode)reader.ReadUInt32(), AddressV = (TextureAddressMode)reader.ReadUInt32(), AddressW = (TextureAddressMode)reader.ReadUInt32(), MipLODBias = reader.ReadSingle(), MaxAnisotropy = reader.ReadUInt32(), ComparisonFunc = (ComparisonFunc)reader.ReadUInt32(), BorderColor = (StaticBorderColor)reader.ReadUInt32(), MinLOD = reader.ReadSingle(), MaxLOD = reader.ReadSingle(), ShaderRegister = reader.ReadUInt32(), RegisterSpace = reader.ReadUInt32(), ShaderVisibility = (ShaderVisibility)reader.ReadUInt32(), }); }