extern private void SetRuntimeData(VFXExpressionSheetInternal sheet, VFXEditorSystemDesc[] systemDesc, VFXEventDesc[] eventDesc, VFXGPUBufferDesc[] bufferDesc, VFXTemporaryGPUBufferDesc[] temporaryBufferDesc, VFXCPUBufferDesc[] cpuBufferDesc, VFXShaderSourceDesc[] shaderSourceDesc);
public void SetRuntimeData(VFXExpressionSheet sheet, VFXEditorSystemDesc[] systemDesc, VFXEventDesc[] eventDesc, VFXGPUBufferDesc[] bufferDesc, VFXCPUBufferDesc[] cpuBufferDesc, VFXTemporaryGPUBufferDesc[] temporaryBufferDesc = null) { var internalSheet = new VFXExpressionSheetInternal(); internalSheet.expressions = sheet.expressions; internalSheet.values = CreateValueSheet(sheet.values); internalSheet.exposed = sheet.exposed; SetRuntimeData(internalSheet, systemDesc, eventDesc, bufferDesc, temporaryBufferDesc, cpuBufferDesc); }
extern private void SetRuntimeData(VFXExpressionSheetInternal sheet, VFXEditorSystemDesc[] systemDesc, VFXEventDesc[] eventDesc, VFXGPUBufferDesc[] bufferDesc, VFXTemporaryGPUBufferDesc[] temporaryBufferDesc, VFXCPUBufferDesc[] cpuBufferDesc, VFXShaderSourceDesc[] shaderSourceDesc, ShadowCastingMode shadowCastingMode, MotionVectorGenerationMode motionVectorGenerationMode, uint version);
//This version is for backward compatibility public void SetRuntimeData(VFXExpressionSheet sheet, VFXEditorSystemDesc[] systemDesc, VFXEventDesc[] eventDesc, VFXGPUBufferDesc[] bufferDesc, VFXCPUBufferDesc[] cpuBufferDesc, VFXTemporaryGPUBufferDesc[] temporaryBufferDesc) { var internalSheet = new VFXExpressionSheetInternal(); internalSheet.expressions = sheet.expressions; internalSheet.values = CreateValueSheet(sheet.values); internalSheet.exposed = sheet.exposed; SetRuntimeDataDeprecated(internalSheet, systemDesc, eventDesc, bufferDesc, temporaryBufferDesc, cpuBufferDesc, this.shaderSources, defaultVersion); }
public void SetRuntimeData(VFXExpressionSheet sheet, VFXEditorSystemDesc[] systemDesc, VFXEventDesc[] eventDesc, VFXGPUBufferDesc[] bufferDesc, VFXCPUBufferDesc[] cpuBufferDesc, VFXTemporaryGPUBufferDesc[] temporaryBufferDesc, VFXShaderSourceDesc[] shaderSourceDesc, ShadowCastingMode shadowCastingMode, MotionVectorGenerationMode motionVectorGenerationMode, uint version = defaultVersion) { var internalSheet = new VFXExpressionSheetInternal(); internalSheet.expressions = sheet.expressions; internalSheet.values = CreateValueSheet(sheet.values); internalSheet.exposed = sheet.exposed; SetRuntimeData(internalSheet, systemDesc, eventDesc, bufferDesc, temporaryBufferDesc, cpuBufferDesc, shaderSourceDesc, shadowCastingMode, motionVectorGenerationMode, version); }
public void SetRuntimeData(VFXExpressionSheet sheet, VFXEditorSystemDesc[] systemDesc, VFXEventDesc[] eventDesc, VFXGPUBufferDesc[] bufferDesc, VFXCPUBufferDesc[] cpuBufferDesc, VFXTemporaryGPUBufferDesc[] temporaryBufferDesc = null, VFXShaderSourceDesc[] shaderSourceDesc = null) { var internalSheet = new VFXExpressionSheetInternal(); internalSheet.expressions = sheet.expressions; internalSheet.values = CreateValueSheet(sheet.values); internalSheet.exposed = sheet.exposed; //Ensure compatibility with the actual visual effect compilation behavior. //This code and default value can be removed with 2020.1 if (shaderSourceDesc == null) { shaderSourceDesc = shaderSources; } SetRuntimeData(internalSheet, systemDesc, eventDesc, bufferDesc, temporaryBufferDesc, cpuBufferDesc, shaderSourceDesc); }